Datasets:
Add nested manifest.json per config for direct main.py ingestion (co-exists with parquet+NDJSON); fix synthetic_video input_sequence by joining with text-config S_tokens
Browse files- README.md +38 -2
- easyhuman/manifest.json +0 -0
- metadata.json +40 -0
- natural_video/manifest.json +0 -0
- synthetic_video/manifest.json +0 -0
- text/manifest.json +0 -0
README.md
CHANGED
|
@@ -70,18 +70,22 @@ anonstreammem/substream-recollection/
|
|
| 70 |
│ └── SoccerNet-NOTE.txt
|
| 71 |
├── text/
|
| 72 |
│ ├── questions.parquet
|
| 73 |
-
│
|
|
|
|
| 74 |
├── synthetic_video/
|
| 75 |
│ ├── questions.parquet
|
| 76 |
│ ├── questions.json
|
|
|
|
| 77 |
│ └── videos/
|
| 78 |
│ └── L_8_frames/ … L_1024_frames/
|
| 79 |
├── easyhuman/
|
| 80 |
│ ├── questions.parquet
|
| 81 |
-
│
|
|
|
|
| 82 |
└── natural_video/
|
| 83 |
├── questions.parquet
|
| 84 |
├── questions.json
|
|
|
|
| 85 |
└── videos/
|
| 86 |
├── nat_8_frames/ # was exact1fps_short
|
| 87 |
├── nat_16_frames/ # was exact1fps_B1
|
|
@@ -97,6 +101,19 @@ clips. EasyHuman uses a flatter layout with no inner bucket directory.
|
|
| 97 |
|
| 98 |
## Loading
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
```python
|
| 101 |
from datasets import load_dataset
|
| 102 |
|
|
@@ -106,6 +123,25 @@ eh = load_dataset("anonstreammem/substream-recollection", "easyhuman")["trai
|
|
| 106 |
natv = load_dataset("anonstreammem/substream-recollection", "natural_video")["train"]
|
| 107 |
```
|
| 108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
Video files are referenced by relative `video_path` / `clip_path` in each
|
| 110 |
parquet. To resolve them locally, snapshot the repo:
|
| 111 |
|
|
|
|
| 70 |
│ └── SoccerNet-NOTE.txt
|
| 71 |
├── text/
|
| 72 |
│ ├── questions.parquet
|
| 73 |
+
│ ├── questions.json # NDJSON copy of the parquet
|
| 74 |
+
│ └── manifest.json # nested-shape manifest for main.py
|
| 75 |
├── synthetic_video/
|
| 76 |
│ ├── questions.parquet
|
| 77 |
│ ├── questions.json
|
| 78 |
+
│ ├── manifest.json
|
| 79 |
│ └── videos/
|
| 80 |
│ └── L_8_frames/ … L_1024_frames/
|
| 81 |
├── easyhuman/
|
| 82 |
│ ├── questions.parquet
|
| 83 |
+
│ ├── questions.json
|
| 84 |
+
│ └── manifest.json
|
| 85 |
└── natural_video/
|
| 86 |
├── questions.parquet
|
| 87 |
├── questions.json
|
| 88 |
+
├── manifest.json
|
| 89 |
└── videos/
|
| 90 |
├── nat_8_frames/ # was exact1fps_short
|
| 91 |
├── nat_16_frames/ # was exact1fps_B1
|
|
|
|
| 101 |
|
| 102 |
## Loading
|
| 103 |
|
| 104 |
+
Each config ships in three formats so downstream consumers can pick whichever is
|
| 105 |
+
most convenient:
|
| 106 |
+
|
| 107 |
+
- `<config>/questions.parquet` — the canonical flat per-question table for
|
| 108 |
+
`datasets.load_dataset(...)` and pandas/Arrow workflows.
|
| 109 |
+
- `<config>/questions.json` — NDJSON copy of the parquet (one row per line).
|
| 110 |
+
- `<config>/manifest.json` — nested `{"videos": [...]}`-shape manifest, directly
|
| 111 |
+
ingestible by the project's `main.py` via
|
| 112 |
+
`datasets.patternvideos_manifest.load_patternvideos_manifest`. No adapter
|
| 113 |
+
required.
|
| 114 |
+
|
| 115 |
+
### Flat parquet via `datasets`
|
| 116 |
+
|
| 117 |
```python
|
| 118 |
from datasets import load_dataset
|
| 119 |
|
|
|
|
| 123 |
natv = load_dataset("anonstreammem/substream-recollection", "natural_video")["train"]
|
| 124 |
```
|
| 125 |
|
| 126 |
+
### Nested manifest for direct `main.py` ingestion
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
huggingface-cli download anonstreammem/substream-recollection \
|
| 130 |
+
--repo-type dataset --local-dir ./data
|
| 131 |
+
python main.py ./data/synthetic_video/manifest.json \
|
| 132 |
+
--asset-root ./data/synthetic_video \
|
| 133 |
+
--model internvl-3-5 --bucket-filter UNIFORM_EVAL_L008_ELOW \
|
| 134 |
+
--limit 1 --limit_questions 3
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
The manifest groups rows by their parent video (`video_path` for video-modality
|
| 138 |
+
configs; `(stream_id, length_L, entropy_band)` for text-modality rows). Each
|
| 139 |
+
video entry carries `sequences_used = {S_tokens, S_lanes}` so the loader can
|
| 140 |
+
serve sequence-mode evaluation without any extra columns. Per-question entries
|
| 141 |
+
follow the loader's native binary format
|
| 142 |
+
(`{candidate: {sequence, sequences, clip_path, clip_start, clip_end, present},
|
| 143 |
+
answer: "yes"|"no", question_time, ...}`).
|
| 144 |
+
|
| 145 |
Video files are referenced by relative `video_path` / `clip_path` in each
|
| 146 |
parquet. To resolve them locally, snapshot the repo:
|
| 147 |
|
easyhuman/manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
metadata.json
CHANGED
|
@@ -114,6 +114,46 @@
|
|
| 114 |
"encodingFormat": "application/x-parquet",
|
| 115 |
"contentSize": "37225",
|
| 116 |
"sha256": "5c4815297264c05f37957e6450077cae9f7ac8a48a0247a841c34abd827af6df"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
}
|
| 118 |
],
|
| 119 |
"recordSet": [
|
|
|
|
| 114 |
"encodingFormat": "application/x-parquet",
|
| 115 |
"contentSize": "37225",
|
| 116 |
"sha256": "5c4815297264c05f37957e6450077cae9f7ac8a48a0247a841c34abd827af6df"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"@type": "cr:FileObject",
|
| 120 |
+
"@id": "text-manifest-json",
|
| 121 |
+
"name": "text-manifest-json",
|
| 122 |
+
"description": "Nested-shape manifest.json for the text config — directly ingestible by the project's main.py via load_patternvideos_manifest. Each video entry contains a 'questions' list and 'sequences_used' = {S_tokens, S_lanes}. Co-exists with questions.parquet (for datasets.load_dataset) and questions.json (NDJSON).",
|
| 123 |
+
"contentUrl": "https://huggingface.co/datasets/anonstreammem/substream-recollection/resolve/main/text/manifest.json",
|
| 124 |
+
"encodingFormat": "application/json",
|
| 125 |
+
"contentSize": "9340055",
|
| 126 |
+
"sha256": "37d0a234526aa358734cc6d6b6de5e72728ec344eaab38c2f95cafcb01762487"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"@type": "cr:FileObject",
|
| 130 |
+
"@id": "synthetic_video-manifest-json",
|
| 131 |
+
"name": "synthetic_video-manifest-json",
|
| 132 |
+
"description": "Nested-shape manifest.json for the synthetic_video config — directly ingestible by the project's main.py. Each video entry carries the parent stream's S_tokens / S_lanes and per-question candidate metadata.",
|
| 133 |
+
"contentUrl": "https://huggingface.co/datasets/anonstreammem/substream-recollection/resolve/main/synthetic_video/manifest.json",
|
| 134 |
+
"encodingFormat": "application/json",
|
| 135 |
+
"contentSize": "5729546",
|
| 136 |
+
"sha256": "e35dcf7ee53bc65a31e2725662da53aa0143262e43a03d0b375e179afb01528c"
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"@type": "cr:FileObject",
|
| 140 |
+
"@id": "natural_video-manifest-json",
|
| 141 |
+
"name": "natural_video-manifest-json",
|
| 142 |
+
"description": "Nested-shape manifest.json for the natural_video config — directly ingestible by the project's main.py. One video per question (1028 entries). No token/lane structure.",
|
| 143 |
+
"contentUrl": "https://huggingface.co/datasets/anonstreammem/substream-recollection/resolve/main/natural_video/manifest.json",
|
| 144 |
+
"encodingFormat": "application/json",
|
| 145 |
+
"contentSize": "605090",
|
| 146 |
+
"sha256": "f3f719f2812d8f433861a741440d13e836c6b008d516804259944e6c98b8d2ef"
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"@type": "cr:FileObject",
|
| 150 |
+
"@id": "easyhuman-manifest-json",
|
| 151 |
+
"name": "easyhuman-manifest-json",
|
| 152 |
+
"description": "Nested-shape manifest.json for the easyhuman config — directly ingestible by the project's main.py. Per-video 'modality' field distinguishes text vs video rows.",
|
| 153 |
+
"contentUrl": "https://huggingface.co/datasets/anonstreammem/substream-recollection/resolve/main/easyhuman/manifest.json",
|
| 154 |
+
"encodingFormat": "application/json",
|
| 155 |
+
"contentSize": "1123982",
|
| 156 |
+
"sha256": "1fad69c8c36c476345e4ff478637cc55fde5a302e5fef9ce4e5a8da490b1eb67"
|
| 157 |
}
|
| 158 |
],
|
| 159 |
"recordSet": [
|
natural_video/manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
synthetic_video/manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
text/manifest.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|