Prepare Ego4D frame dataset
mainTo prepare Ego4D frames:
- Accept the license agreement on the official Ego4D website.
- Configure AWS credentials using
awscliwith the values provided in your Ego4D email. - Install the
ego4dlibrary. - Update
CONFIG_FRAMES.yamlwithpath_annotations,aws_access_key_id,aws_secret_access_key, andego4d_path(where frames are saved). - (Optional) Set
remove_downloaded_videos_ego4dinCONFIG_FRAMES.yamlto control video cleanup. - Download the
clipssubset and extract frames.
pip install awscli
aws configure
# Install library
pip install ego4d
# Download and extract
python download_videos.py ego4d
python extract_frames.py ego4d