Update README.md
Browse files324 unmodified lines325326327324 unmodified linespre-intervention prefix and measure prediction quality on the post-interventionsuffix directly.324 unmodified lines325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404324 unmodified linespre-intervention prefix and measure prediction quality on the post-interventionsuffix directly.## InterventionsEach of the 240 videos was re-simulated and re-rendered with the source repo'sown `pendulum_gen.py`, with an intervention applied at **frame 96 (t = 8.0 s)**of the 13.3 s clip. Frames 0–95 are identical to the originals (verified: maxpixel diff ≤ 29, i.e. pure H.264 encoder noise).| type | what changes | what stays the same ||---|---|---|| **`light_shift`** (120 videos) | At frame 96 the light source trajectory is smoothly switched (smoothstep ramp over 6 frames) to a new mean/amplitude/frequency/phase (`Δmean ∈ ±20°`, `amp ∈ [5,30]°`, `f ∈ [0.15,0.40] Hz`). The sun and its shadow sweep differently for the last ~5 s. | Pendulum physics byte-identical (`theta_deg` diff = 0.0). || **`torque_push`** (120 videos) | A physical intervention: an external torque impulse `A·exp(−(t−t_push)²/2σ²)` (σ = 0.15 s, `A ∈ [2.0,4.5] rad/s²`) is applied at 8 s; the bob's motion genuinely deviates afterwards (Δθ up to ~6°, Δω up to ~0.34 rad/s). | Light trajectory unchanged. |All videos passed the original scene validator (`|θ| ≤ 85°`, sun/bob/shadowinside world bounds).## Layout```videos/train/video_XXXXX.mp4 240 intervened videos (same ids as originals)timeseries/video_XXXXX.csv 240 frame-aligned labels, same schema as originalquestions/questions_train.json 1,920 CLEVRER-style questions (8 per video), regeneratedfrom the intervened 28 s simulations (same RNG selectionseed as the source: [20261014, index, 777])questions/taxonomy.json question-type registry (same as source)wds/train/pendulum-train-000000.tar WebDataset shard (128 videos: *.video.mp4 + *.meta.json)wds/train/pendulum-train-000001.tar WebDataset shard (112 videos)index_intervention.csv 240 rows: original index + intervention_type/cut_frame/paramsintervention_log.json per-video intervention details + post-cut statsREADME_intervention.md full documentation + reproduction instructionspreview_before_after.mp4 side-by-side original vs intervened (4 examples)contact_sheet.png static pre/post-cut comparison grid```WebDataset shards follow the source format exactly: each tar holds`video_XXXXX.video.mp4` + `video_XXXXX.meta.json` (`{"split","filename"}`),128 videos per shard, ordered by video id — drop-in compatible with thesource dataset's wds loader.CSVs keep the original schema; for `light_shift` the light/shadow columns changepost-cut while physics columns stay identical, for `torque_push` the physicscolumns change post-push.## Use with C-JEPA / VideoSAURRun VideoSAUR slot extraction on these videos, then evaluate Lfuture on thepost-cut suffix (frames 96–159). `light_shift` tests prediction of thelight→shadow causal link (nuisance-factor intervention); `torque_push` testsprediction of the physical response to an external force.## Reproduce```bashpython3 intervene.py # regenerates the intervened set (resumable)python3 make_preview.py # rebuilds preview mp4 / contact sheet```Selection and parameters are deterministic (`SEED=20261118`, `EVERY=10`,`CUT_FRAME=96` in `intervene.py`).## Questions v2 (intervention-focused)- **3,360 questions total** (14 per video): the original 1,920 plus **1,440 newintervention-focused questions** (6 per video).- New questions ask what changed at **frame 96 / t = 8 s**, which quantitiesstay invariant, why the shadow or bob responds, and what would have happenedwithout the `light_shift` or `torque_push`.- Corrections to the original questions:- 19 `light_shift` clips whose “the shadow would settle to one spot” answerwas wrong — the light keeps sweeping, so the shadow keeps moving.- The “shadow always moves with the bob” and “what mainly causes the shadowsweep” questions are now explicitly scoped to the first 8 s (before thelight switch), where that answer is true.- The light-invariance counterfactual now says **ONLY** the light changes.- New question template IDs are recorded in `questions/taxonomy.json`.The generation script and the v1 backup are kept in the workspace used tobuild this copy, not in the dataset itself.
README.md+77