ZihanWang314 commited on
Commit ·
ee6abc6
1
Parent(s): 9dec5d5
update
Browse files126 unmodified lines1271281291301311321337 unmodified lines14114214314414514621 unmodified lines1681691701711721731741754 unmodified lines180181182183184185126 unmodified lines'E': 'The nail on the right side of the motorcycle exhaust pipe'},'video_metadata': {'CLIP-reference-interval': [180.0, 240.0], # Time interval of the video that is considered to be important in CLIP. This is originally from the Ego4D dataset, used here for annotators to quickly locate in the video.'frame_count': 14155, # Total number of frames in the video'frame_rate': 30.0, # Frame rate of the video'duration': 471.8333435058594, # Duration of the video in seconds7 unmodified lines}}```#### Dataset explorationadd hyperlink to demo21 unmodified lines#### Video Source DownloadTODO: We plan to provide a script of how to download a subset from [Ego4d](https://ego4d-data.org/).Assume your video will be downloaded to your_path/videos/ .```bashpip install ego4d4 unmodified linespython process_videos_to_clips.py```#### Dataset Statistics Summary126 unmodified lines1271281291301311321331341357 unmodified lines14314414514614714814915021 unmodified lines1721731741751761771784 unmodified lines183184185186187188189190191192193194195196197198199200201202126 unmodified lines'E': 'The nail on the right side of the motorcycle exhaust pipe'},'video_metadata': {'CLIP-reference-interval-vclip': [180.0, 240.0], # Time interval of the "vclip" that is considered to be important by CLIP. this is calculated by (CLIP-reference-interval-video - vclip-interval-in-video[0])'CLIP-reference-interval-video': [180.0, 240.0], # Time interval of the "video" that is considered to be important by CLIP. This is originally from the **Ego4D dataset**, used in our work for annotators to quickly locate in the video.'vclip_interval_in_video': [0.0, 480.06667277018227], # the vclip start and end second, i.e., for [a, b], the vclip starts at the a second of the video, ends at the b second of the video'frame_count': 14155, # Total number of frames in the video'frame_rate': 30.0, # Frame rate of the video'duration': 471.8333435058594, # Duration of the video in seconds7 unmodified lines}}```#### Dataset explorationadd hyperlink to demo21 unmodified lines#### Video Source DownloadTODO: We plan to provide a script of how to download a subset from [Ego4d](https://ego4d-data.org/).For now, you can refer to their official guide [here](https://github.com/facebookresearch/Ego4d/tree/main/ego4d/cli). Your code would be look like the follows:```bashpip install ego4d4 unmodified linespython process_videos_to_clips.py```Please find [video_uid.txt](https://huggingface.co/datasets/LVHaystack/LongVideoHaystack/blob/main/video_uid.txt) in our repo, or you can generate it by:```pythonimport datasetsmetadata = datasets.load_dataset("LVHaystack/LongVideoHaystack-metadata")with open("video_uids.txt", "w") as file:for video_id in metadata['video_id']:file.write(video_id + " ")```then, you need to transform them to video clips:```python```#### Dataset Statistics Summary
README.md+20-3