pineapplechoco commited on
Commit
de47c17
·
verified ·
1 Parent(s): 6b055a0

Publish full 7200-scene Wan report and feature the matched video demos on the dataset card

Browse files
README.md CHANGED
@@ -35,3 +35,9 @@ with np.load(path, allow_pickle=False) as scene:
35
  ```
36
 
37
  [Molab build and verification log, 18 November 2026](logs/2026-11-18-molab-dataset-update.md)
 
 
 
 
 
 
 
35
  ```
36
 
37
  [Molab build and verification log, 18 November 2026](logs/2026-11-18-molab-dataset-update.md)
38
+
39
+ ## Wan on the 7,200-scene training split
40
+
41
+ The frozen Wan 2.1 comparison covers GT masks, two attention generations, a velocity-correction ablation, the Interaction Network and the rigid-body solver. The full-pass experiment includes 20 side-by-side demos, per-hit motion measurements and direct spatial and timing edits to the control mask.
42
+
43
+ [Full pipeline results](v4_wan_gt_full7200_20261127/full_pass/RESULTS.md) · [Watch the struck-object demo](v4_wan_gt_full7200_20261127/full_pass/baseline_panel/demos/001866.mp4) · [Browse all 20 demos](v4_wan_gt_full7200_20261127/full_pass/baseline_panel/README.md)
v4_wan_gt_full7200_20261127/README.md CHANGED
@@ -1,3 +1,5 @@
 
 
1
  # Wan downstream evaluation
2
 
3
  Registered 20 scenes. 20 have scored videos, 19 have all three controls, and 20 have a simulator RGB reference. The historical 15-scene demo panel contains 10 upstream validation scenes and 5 upstream test scenes. The five additional v4 scenes represent collision-free counterfactuals.
 
1
+ [Open the full 7,200-update evaluation and six-condition demos](full_pass/RESULTS.md)
2
+
3
  # Wan downstream evaluation
4
 
5
  Registered 20 scenes. 20 have scored videos, 19 have all three controls, and 20 have a simulator RGB reference. The historical 15-scene demo panel contains 10 upstream validation scenes and 5 upstream test scenes. The five additional v4 scenes represent collision-free counterfactuals.
v4_wan_gt_full7200_20261127/code/attribute_mask_motion.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ from collections import Counter
3
+ from types import SimpleNamespace
4
+ import json,sys
5
+ import numpy as np
6
+ import wan_v4_score as sc
7
+ w=Path(sys.argv[1]);root=w/'full_pass';m=sc.read(w/'inputs_full/manifest.json');out=root/'baseline_panel/evaluation';meas=root/'baseline_panel/prefix_tracking_metrics/measurements'
8
+ arms=('gt','previous','attention','attention_bare','in','solver');rows=[];stats={arm:Counter() for arm in arms}
9
+ for sid in m['test']:
10
+ with np.load(w/'inputs_full'/(sid+'.npz'),allow_pickle=False) as primary, np.load(w/'baseline_masks'/(sid+'.npz'),allow_pickle=False) as extended:
11
+ gt=primary['gt'];n=len(primary['palette']);truth=sc.tracks(gt,n)
12
+ ref=sc.read(meas.parent/'reference'/(sid+'.json'))
13
+ for arm in arms:
14
+ labels=(primary if arm in ('gt','previous','attention') else extended)[arm]; xy=sc.tracks(labels,n)
15
+ v=sc.read(meas/arm/(sid+'.json'))
16
+ for event,orig in zip(v['hits'],ref['hits'],strict=True):
17
+ if not orig['eligible_tracker_motion_control']:continue
18
+ assert event['object_id']==orig['object_id'] and event['simulator_contact_frame']==orig['simulator_contact_frame']
19
+ frame=event['simulator_contact_frame']; k=event['slot']
20
+ mask=sc.motion_sample(k,frame,xy,truth)
21
+ px=event['motion']
22
+ assert abs(mask['expected_px']-px['expected_px'])<1.e-5
23
+ a=mask.get('direction_matched') is True;b=px.get('direction_matched') is True
24
+ key=('mask_pass' if a else 'mask_miss')+('_video_pass' if b else '_video_miss')
25
+ stats[arm][key]+=1
26
+ rows.append(dict(scene=sid,arm=arm,hop=event['hop'],object_id=event['object_id'],frame=frame,mask_motion=mask,decoded_motion=px,classification=key))
27
+ assert all(sum(r.values())==13 for r in stats.values())
28
+ p=out/'mask_vs_decoded_motion.json';sc.write(p,{'qualification':'same 13 independently reference-trackable directed-displacement events','method':'Identical direction and magnitude criteria on the rendered control mask centroid and the SAM-measured RGB centroid, compared to the visible simulator silhouette displacement. Missing assignments count as unsuccessful.','paired_counts':{k:dict(v) for k,v in stats.items()},'events':rows})
29
+ print(dict(stats),flush=True)
30
+ from huggingface_hub import HfApi
31
+ a=HfApi(token=True);rid='pineapplechoco/jais-physical-graph-cache';assert a.dataset_info(rid).private
32
+ print(a.upload_file(repo_id=rid,repo_type='dataset',path_in_repo='v4_wan_gt_full7200_20261127/full_pass/baseline_panel/mask_vs_decoded_motion.json',path_or_fileobj=str(p),commit_message='Localize struck-object errors to rendered masks or Wan output on identical events').oid)
v4_wan_gt_full7200_20261127/code/audit_terminal_media.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+ from fractions import Fraction
3
+ from collections import defaultdict
4
+ import json, hashlib, sys, av, statistics
5
+ w=Path(sys.argv[1]); root=w/'full_pass'
6
+ plan=json.loads((w/'inputs_full/manifest.json').read_bytes())
7
+ done={}
8
+ for s in plan['registered_test']:
9
+ arms=('gt','attention','previous','in','solver','attention_bare') if s in plan['test'] else ('gt',)
10
+ paired=None
11
+ for arm in arms:
12
+ mdir=root/('model' if arm in ('gt','previous','attention') else 'baseline_panel/model')/arm
13
+ path=mdir/(s+'.mp4');rec=json.loads((mdir/(s+'.json')).read_bytes())
14
+ with path.open('rb') as f: assert hashlib.file_digest(f,'sha256').hexdigest()==rec['sha256']
15
+ capture=(rec['weights'],rec['initial_noise'],rec['source'],rec['seed'])
16
+ if paired is None:paired=capture
17
+ assert paired==capture
18
+ with av.open(str(path)) as video:
19
+ st=video.streams.video[0]; rate=st.average_rate
20
+ assert Fraction(rate.numerator,rate.denominator)==24
21
+ frames=sum(1 for f in video.decode(st) if f.width==256 and f.height==256)
22
+ assert frames==rec['frame_count']==48
23
+ assert rec['ingress_calls']==rec['steps']==30
24
+ done.setdefault(arm,[]).append(rec['first_denoiser_mask_ablation_rms'])
25
+ summary={'terminal_updates':7200,'registered':len(plan['registered_test']),'paired':len(plan['test']),'clips_verified':sum(map(len,done.values())),'frame_count':48,'fps':24,'frame_size':[256,256],'denoising_steps':30,'ingress_checks':30*sum(map(len,done.values())),'verified_fields':['encoded MP4 digest and geometry','decoded frame count','exact rational frame rate','identical per-scene prefix, initial noise, weights, seed','all denoising steps checked'],'mask_ablation_first_step_rms':{k:{'n':len(v),'min':min(v),'median':statistics.median(v),'max':max(v)} for k,v in done.items()}}
26
+ assert summary['clips_verified']==115 and summary['ingress_checks']==3450
27
+ dest=root/'baseline_panel/evaluation/media_audit.json';dest.write_text(json.dumps(summary,indent=2))
28
+ print(json.dumps(summary),flush=True)
29
+ from huggingface_hub import HfApi
30
+ a=HfApi(token=True);rid='pineapplechoco/jais-physical-graph-cache';assert a.dataset_info(rid).private
31
+ print(a.upload_file(repo_id=rid,repo_type='dataset',path_in_repo='v4_wan_gt_full7200_20261127/full_pass/baseline_panel/media_audit.json',path_or_fileobj=str(dest),commit_message='Independently verify all 115 paired terminal videos and 3450 mask ingress checks').oid)
v4_wan_gt_full7200_20261127/full_pass/RESULTS.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wan 2.1 on all 7,200 JAIS training scenes
2
+
3
+ The GT-mask fine-tune ran on Molab for one pass over 7,200 distinct training scenes. The update-7,200 checkpoint produced 115 videos for the registered comparison. With GT masks, it reproduced the struck object’s displacement on all 13 reference-qualified events. With current corrected-attention masks it reproduced 8 of 13. Four of the five failed displacements were already wrong in the mask sent to Wan. [Per-event mask and decoded-video measurements](baseline_panel/mask_vs_decoded_motion.json)
4
+
5
+ [Watch scene 001866, the historical struck-object example](baseline_panel/demos/001866.mp4) · [Watch scene 005451, a second-hit overshoot](baseline_panel/demos/005451.mp4) · [Watch collision-free v4 scene 022006](baseline_panel/demos/022006.mp4) · [Open the complete six-condition gallery](baseline_panel/README.md)
6
+
7
+ ## What was trained and tested
8
+
9
+ The four data versions supplied 1,600, 2,000, 2,000 and 1,600 training scenes, respectively. A fresh rank-16 Wan 2.1 1.3B adapter and mask-conditioning projection learned from GT counterfactual masks. RGB inputs and RGB supervision came exclusively from the pre-intervention observations. The supervision proxy moved previously seen pixels to their GT mask locations. The original counterfactual RGB videos were used only for evaluating outputs. The source-trained propagators used observed bounding boxes and silhouettes, supplied camera geometry, and object dimensions.
10
+
11
+ All 20 demo IDs were excluded from Wan training and checkpoint selection. The panel contains ten historical upstream validation scenes, five historical upstream test scenes, and five collision-free v4 test scenes. The five v4 examples were predetermined from the 374 of 500 test scenes with complete tracked observations. One object in historical scene 010284 was unobserved in the prefix. It has a GT-only demo. The six-way comparison uses the remaining 19 cases.
12
+
13
+ The fixed 12-scene validation loss decreased from 0.14726 to 0.04688 at 7,200 updates. Update 6,400 attained 0.04494. On an independent 48-scene validation audit the terminal and validation-selected losses were 0.05049 and 0.05003, respectively. These are weighted flow-matching losses against prefix-derived supervision. The table below uses actual decoded RGB from the terminal weights. [Training coverage and proof](../model/training_complete.json) · [Terminal checkpoint and validation-selected comparison](comparison.json)
14
+
15
+ ## Decoded motion under each control
16
+
17
+ | Mask supplied to frozen Wan | Mask IoU vs GT | Correct struck motion | Onset within 2 frames | Correct slot localization¹ |
18
+ |---|---:|---:|---:|---:|
19
+ | GT | 1.000 | 13/13 | 11/11 | 5,106/5,110 |
20
+ | Current corrected attention | 0.742 | 8/13 | 8/11 | 4,339/5,110 |
21
+ | Current attention without velocity correction | 0.742 | 9/13 | 7/11 | 4,334/5,110 |
22
+ | Previous corrected attention | 0.732 | 9/13 | 7/11 | 4,283/5,110 |
23
+ | Frozen rigid-body solver | 0.729 | 8/13 | 7/11 | 4,319/5,110 |
24
+ | Interaction Network | 0.618 | 5/13 | 8/11 | 4,206/5,110 |
25
+
26
+ A successful displacement has the correct on-screen direction within 45° and travels between 0.5 and 1.5 times the simulator displacement, measured from one frame before contact through seven frames after. The reference tracker recovered 13 of 13 eligible displacements and 11 of 17 contact onsets within two frames on the simulator videos. Those events were locked before scoring generated videos. ¹Slot localization counts object-frames in which the prefix-prompted tracker kept the correct slot over the simulator object. It can fall when an object retains its appearance but follows the wrong path. Repeated frames and hits within a scene are dependent. One-event differences in this small panel warrant a larger test. [Metric definitions and full tracking results](baseline_panel/prefix_tracking/README.md)
27
+
28
+ No condition produced a measured false endpoint displacement above 4 px on reference-verified stationary v4 windows. The denominators matter. All 165 windows were measurable under GT, 160 under each attention variant and the solver, and 158 under IN. The remaining windows had unassigned endpoints. These counts measure visible drift on stationary objects, not contact classification across the v4 population.
29
+
30
+ ## Where control succeeds and fails
31
+
32
+ The same weights, observed prefix and initial noise were used for all conditions within each scene. An exact check at the input projection verified the intended source and mask latents on all 30 denoising steps of all 115 clips. Every video decoded to 48 frames at 24 fps and 256 × 256. [Media and control-path audit](baseline_panel/media_audit.json)
33
+
34
+ In scene 001866, the simulator’s struck object moved 8.20 px. The decoded video moved it 6.13 px under GT masks, 7.33 px under current corrected attention, 7.49 px under the solver, and 1.49 px under IN. An independent change to the GT control shifted that object’s mask by 15.68 px and shifted its decoded center by 14.21 px. Delaying the mask by four frames delayed the rendered movement by three. On v4 scene 022006, a 16.00 px mask shift produced 16.47 px of decoded movement. Motion in that scene was too weak to resolve the lag reliably. [Spatial and temporal mask edits](decoded_control_edits/prefix_tracking/README.md)
35
+
36
+ In scene 005451, the simulator’s second recipient moved 8.73 px. Corrected attention requested 31.74 px of mask movement, and Wan rendered 32.01 px. That overshoot was present before video generation. In scene 001215 the mask passed the displacement criterion and the rendered direction missed it by exceeding the 45° tolerance. Both failure modes are visible in the gallery.
37
+
38
+ Wan 2.1 remains a measured baseline for JAIS. Wan2.2-Fun-5B-Control is a suitable challenger for a matched test with the same prefixes, seeds, GT-mask training budget and mask-edit checks. Its published controls include pose, depth and trajectories. Colored JAIS instance masks require validation on this task. This run did not evaluate Wan 2.2. [Alibaba PAI model card](https://huggingface.co/alibaba-pai/Wan2.2-Fun-5B-Control/blob/main/README_en.md)