Closed giuliano-97 closed 3 months ago
I've tried with the latest main
, still get the same error:
ego4d --list-datasets --version v2_1
Downloading datasets.csv..
ERROR:root:Exception retrieving Ego4D datasets: An error occurred (403) when calling the HeadObject operation: Forbidden
Traceback (most recent call last):
File "/home/giuliano/dev/ego4d/Ego4d/ego4d/cli/manifest.py", line 237, in print_datasets
p = download_datasets(version, tmppath, s3)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/dev/ego4d/Ego4d/ego4d/cli/manifest.py", line 228, in download_datasets
_datasets_object(version, s3).download_file(str(download_path))
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/boto3-1.34.150-py3.11.egg/boto3/s3/inject.py", line 361, in object_download_file
return self.meta.client.download_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/boto3-1.34.150-py3.11.egg/boto3/s3/inject.py", line 192, in download_file
return transfer.download_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/boto3-1.34.150-py3.11.egg/boto3/s3/transfer.py", line 406, in download_file
future.result()
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/s3transfer-0.10.2-py3.11.egg/s3transfer/futures.py", line 103, in result
return self._coordinator.result()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/s3transfer-0.10.2-py3.11.egg/s3transfer/futures.py", line 266, in result
raise self._exception
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/s3transfer-0.10.2-py3.11.egg/s3transfer/tasks.py", line 269, in _main
self._submit(transfer_future=transfer_future, **kwargs)
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/s3transfer-0.10.2-py3.11.egg/s3transfer/download.py", line 354, in _submit
response = client.head_object(
^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/botocore-1.34.150-py3.11.egg/botocore/client.py", line 565, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/giuliano/miniforge3/envs/ego4d/lib/python3.11/site-packages/botocore-1.34.150-py3.11.egg/botocore/client.py", line 1017, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden
@miguelmartin75 any ideas?
Update
While fetching the dataset list doesn't work with --version v2
, downloading seems to work:
ego4d --output_directory="~/dev/ego4d/data" --datasets full_scale annotations --video_uids 8301a3fc-aac5-466d-bb02-d0ac7a81ccc6
Datasets to download: {'annotations', 'full_scale'}
Download Path: /home/giuliano/dev/ego4d/data/v2
Downloading Ego4D metadata json..
Ego4D Metadata: /home/giuliano/dev/ego4d/data/ego4d.json
Checking requested datasets and versions...
Created download directory for version 'v2_1' of dataset: 'annotations' at: /home/giuliano/dev/ego4d/data/v2/annotations
Only downloading a subset of the video files because the 'video_uids' flag has been set on the command line or in the config file. A total of 1 video files will be downloaded.
Created download directory for version 'v2_1' of dataset: 'full_scale' at: /home/giuliano/dev/ego4d/data/v2/full_scale
Only downloading a subset of the video files because the 'video_uids' flag has been set on the command line or in the config file. A total of 1 video files will be downloaded.
Retrieving object metadata from S3...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 34/34 [00:00<00:00, 3135.93object/s]
Checking if latest file versions are already downloaded...
6%|██████████▏ | 2/34 [00:00<00:11, 2.75file/s]WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: ego4d-consortium-sharing.s3.us-west-1.amazonaws.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: ego4d-consortium-sharing.s3.us-west-1.amazonaws.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: ego4d-consortium-sharing.s3.us-west-1.amazonaws.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: ego4d-consortium-sharing.s3.us-west-1.amazonaws.com. Connection pool size: 10
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: ego4d-consortium-sharing.s3.us-west-1.amazonaws.com. Connection pool size: 10
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 34/34 [00:21<00:00, 1.56file/s]
No existing videos to filter.
Expected size of downloaded files is 6.1137 GB. Do you want to start the download? ([y]/n) y
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.11G/6.11G [10:29<00:00, 1.94MiB/s]Checking file integrity...
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.11G/6.11G [10:29<00:00, 10.4MiB/s]
Yeah, I did not update the datasets.csv
for V2.1 or V2
It is now available for V2.1
Thank you for the flag.
thanks, it works now :)
I configured my AWS credentials and installed the Ego4D CLI as per the documentation. This works:
But passing
--version v2
or--version v2_1
results in this error: