UniVLA icon indicating copy to clipboard operation
UniVLA copied to clipboard

ego4d data processing script

Open NNNatsuki opened this issue 1 year ago • 9 comments

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?

NNNatsuki avatar Jul 28 '25 02:07 NNNatsuki

Thanks for testing our codes. I've fixed this in the latest commit.

retsuh-bqw avatar Jul 30 '25 06:07 retsuh-bqw

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.

NNNatsuki avatar Jul 31 '25 02:07 NNNatsuki

Could you share the total storage space required by your downloaded dataset? I just want to check if all data is correctly downloaded.

retsuh-bqw avatar Jul 31 '25 08:07 retsuh-bqw

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.

NNNatsuki avatar Jul 31 '25 08:07 NNNatsuki

After processed by step3, I only get 427 episode_.npy files. @retsuh-bqw

JackHuang0701 avatar Aug 03 '25 11:08 JackHuang0701

would you share your episode_.npy files ? @retsuh-bqw

JackHuang0701 avatar Aug 03 '25 11:08 JackHuang0701

@retsuh-bqw @hli2020

JackHuang0701 avatar Aug 03 '25 13:08 JackHuang0701

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.

Nemo-1024 avatar Aug 13 '25 08:08 Nemo-1024

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 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.

NNNatsuki avatar Aug 13 '25 08:08 NNNatsuki