An error with downloading ego4d dataset

From Googling this issue:

One thing that may be the issue is a VPN or a firewall. You can try adjusting the connection timeout on this line: Ego4d/ego4d/cli/download.py at main · facebookresearch/Ego4d · GitHub to say 300 (this is in seconds). You can also try decreasing the number of workers (which corresponds to concurrent connections), on this line: Ego4d/ego4d/cli/download.py at main · facebookresearch/Ego4d · GitHub (try max_workers=4)

You’ll need to clone the repo if you do this, i.e.

git clone https://github.com/facebookresearch/Ego4d
cd Ego4d
conda create -n ego4d python=3.11 # create or use an existing env
conda use ego4d
pip install .

and ensure "." is in your PYTHONPATH, i.e.

export PYTHONPATH="."

And then, run the script after you’ve modified the code, for example:

python3 ego4d/cli/cli.py -o <out-dir> --version v2 --datasets <your-options-here> ...