|
Download docs/DATASET_GENERATION.md from IIS-CVL/EventActivityNet: direct link, hf CLI and curl.
- Browser
- Download file 3.25 kB
-
https://huggingface.co/datasets/IIS-CVL/EventActivityNet/resolve/a0a233decf2bf64d7019d62ecfd18c2e4b0d00a7/docs/DATASET_GENERATION.md
- Command line
-
hf download hf://datasets/IIS-CVL/EventActivityNet@a0a233decf2bf64d7019d62ecfd18c2e4b0d00a7/docs/DATASET_GENERATION.md
-
curl -L -o DATASET_GENERATION.md https://huggingface.co/datasets/IIS-CVL/EventActivityNet/resolve/a0a233decf2bf64d7019d62ecfd18c2e4b0d00a7/docs/DATASET_GENERATION.md
3.25 kB
| # EventActivityNet v1.0 Dataset Generation | |
| ## Source Video Lineage | |
| EventActivityNet v1.0 was generated from the non-interpolated/original-rate ActivityNet video lineage. It was not generated from the recovered 240fps interpolated video directory. | |
| Source FPS varies by video. The generator records FPS metadata per HDF5 file and preserves source spatial resolution. | |
| ## Large Subset Curation | |
| The Large release exactly matches the recovered original Large subset manifest. It contains 3,263 unique video IDs. | |
| The recovered subset curation implementation: | |
| - merges ActivityNet Captions train and validation metadata before sampling; | |
| - uses seed `2025`; | |
| - performs initial class-balanced sampling with `max(5, int(class_ratio * class_count))`; | |
| - uses default `class_ratio=0.2`; | |
| - length-balances using 33% and 66% duration quantiles; | |
| - enriches with event-friendly examples from caption keywords or first-frame darkness. | |
| Event-friendly keywords: | |
| ```text | |
| run, fast, sprint, night, dark, slow-motion | |
| ``` | |
| Darkness threshold: | |
| ```text | |
| normalized first-frame mean brightness < 0.4 | |
| ``` | |
| The minimum-per-class rule is an initial sampling-stage rule. Later global length balancing can reduce final per-class counts below that initial quota. | |
| ## HDF5 Generation Pipeline | |
| The confirmed generation call chain is: | |
| - `activitynet.sh` | |
| - `activitynet.py` | |
| - `mp4_to_h5.mp4_to_h5_stream()` | |
| - `data/v2v_core_esim_gpu.EventEmulatorGPU.video_to_voxel()` | |
| - HDF5 writer | |
| Confirmed generation parameters: | |
| | Parameter | Value | | |
| |---|---| | |
| | Source video lineage | non-interpolated/original-rate ActivityNet videos | | |
| | Number of bins | 5 | | |
| | `frames_per_bin` | 1 | | |
| | Spatial resizing | none; source resolution preserved | | |
| | Output event dtype | `int16` | | |
| | `voxel_event_start` dtype | `int64` | | |
| | `voxel_event_count` dtype | `int32` | | |
| | `events` compression | gzip+shuffle | | |
| | Auxiliary compression | LZF+shuffle | | |
| | Learned checkpoint required | no | | |
| The recovered implementation shows that no learned HyperE2VID/V2V checkpoint is used for HDF5 generation. Checkpoints found in the recovered project belong to downstream reconstruction/evaluation code, not to the generation of the HDF5 voxel files. | |
| ## Voxel Metadata Semantics | |
| The generator emits event slices from adjacent grayscale video frames and accumulates them into output voxel samples. | |
| - `voxel_event_start[t]` is the generated-slice start index for voxel sample `t`. | |
| - `voxel_event_count[t]` is the number of generated slices accumulated into voxel sample `t`. | |
| ## Release Scale Construction | |
| Large is the recovered historical subset. | |
| Medium and Small are newly generated deterministic nested v1.0 release scales: | |
| ```text | |
| Small subset Medium subset Large | |
| ``` | |
| Target durations: | |
| - Medium: approximately 50 hours. | |
| - Small: approximately 20 hours. | |
| Scale construction uses seed `2025` and stratifies by: | |
| ```text | |
| (split, class_label, duration_bucket, event_friendly) | |
| ``` | |
| Within each stratum, records are ranked deterministically by a stable hash of seed and video ID. | |
| ## Verified Output | |
| Final validation confirmed: | |
| - 3,263 valid HDF5 files; | |
| - all files open successfully; | |
| - zero truncated or unreadable files; | |
| - zero remaining structural warnings; | |
| - Large train/validation split: 2,316 / 947. | |