Delete intervened/README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990---license: mitlanguage: ensize_categories: n<1Ktask_categories:- question-answering- video-classificationtags:- pendulum- causal-interventions- clevrer-style- video-qa---
## Interventions
Each 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), regenerated from the intervened 28 s simulations (same RNG selection seed 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 / VideoSAUR
Run 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 new intervention-focused questions** (6 per video).- New questions ask what changed at **frame 96 / t = 8 s**, which quantities stay invariant, why the shadow or bob responds, and what would have happened without the `light_shift` or `torque_push`.- Corrections to the original questions: - 19 `light_shift` clips whose “the shadow would settle to one spot” answer was wrong — the light keeps sweeping, so the shadow keeps moving. - The “shadow always moves with the bob” and “what mainly causes the shadow sweep” questions are now explicitly scoped to the first 8 s (before the light 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.intervened/README.mdDeleted-90