ego4d data processing script
Thank you for sharing your excellent work.
When processing the ego4d data as you described, the annotations.json generated by preprocess_ego4d.py in step 2 does not contain the 'id' key, which causes create_episode_ego4d.py in step 3 to not run as expected. Could you please provide some solutions or suggestions?
Thanks for testing our codes. I've fixed this in the latest commit.
Thanks for testing our codes. I've fixed this in the latest commit.
After processed by step3, we only get 812 episode_.npy files. This seems to be inconsistent with Readme.
Could you share the total storage space required by your downloaded dataset? I just want to check if all data is correctly downloaded.
Could you share the total storage space required by your downloaded dataset? I just want to check if all data is correctly downloaded.
The raw data is about 150G downloaded from python -m ego4d.cli.cli --output_directory=<path-to-save-dir> --datasets clips annotations --metadata --version v2 --benchmarks FHO.
After processed by step3, I only get 427 episode_.npy files. @retsuh-bqw
would you share your episode_.npy files ? @retsuh-bqw
@retsuh-bqw @hli2020
This problem arises from overwriting between different segments. Each segment is named by the selected video frame ID after conversion.
Change
save_path = os.path.join(save_dir, f'episode_{episode_id}.npy')
as
save_path = os.path.join(save_dir, f'episode_{video_name}_{episode_id}.npy')
However, you may encounter other errors when converting Ego4D to RLDS. My response is only for data volume anomalies. And it works for me.
This problem arises from overwriting between different segments. Each segment is named by the selected video frame ID after conversion.
Change
save_path = os.path.join(save_dir, f'episode_{episode_id}.npy')assave_path = os.path.join(save_dir, f'episode_{video_name}_{episode_id}.npy')However, you may encounter other errors when executing this pipeline. My response is only for data volume anomalies. And it works for me.
Thanks for your suggestion! I have solved the problem with a similar approach.