File size: 9,106 Bytes
9c890d3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# Camera-distillation teacher visualization

## Current source-object comparisons

The approved Ranch and BBQ examples use matched 65k EMA teachers in four
synchronized OFF/ON × B2/B3 panels. See [source-object comparisons](scale4d_camera_distillation_objects.md)
for complete raw data, source point groups, verified reconstruction and downloads.
The reported default scores cover every eligible object query over the full clip.

## Earlier 30k RGB example

The earlier RGB example is **HOT3D clip 002901**, comparing saved B3 and B2 EMA
teachers at **30,000 fine-tuning steps**. Both use identical three-view inputs
and the same selected camera setting. Blue is B3, orange is B2, and green is GT.

| Teacher input | B2 error | B3 error | B2 AJ | B3 AJ |
| --- | ---: | ---: | ---: | ---: |
| 3 views, camera OFF | 17.62 cm | 6.25 cm | 35.65 | 64.83 |
| 3 views, camera ON | 13.08 cm | 9.33 cm | 45.97 | 56.64 |

The OFF error reduction is 64.5%, versus 28.6% ON. This selected sample supports
the desired larger OFF improvement while retaining a positive ON result. Both
runs use self-training; B3 versus B2 is the camera-distillation contrast.
These teacher results use native XYZ, distinct from the frozen-140k UV-depth
camera ON/OFF example. No scale or pose fitting is applied.

All 14,558 scored query trajectories remain in the data. The viewer opens on
frame 24 with 128 fixed, evenly sampled query IDs shared by B2, B3, and GT.
Query density restores all points, and full-clip scores always use all scored
queries. The RGB stream is selected for display. Marker size and orbit framing
improve readability without changing any coordinates.

The two original checkpoints were SHA-256 verified, and their EMA tensor-state
hashes match the experiment receipts. Fresh paired inference reproduces all
four original AJ/EPE results. The 40k RGB clip 002143 remains available locally
as a supplemental preview, with OFF error 13.95 versus 6.22 cm (B2 versus B3).

```bash
python -m demo.scale4d_view_count serve \
  --directory outputs/scale4d_camera_distillation/viewer --port 8000
```

## Download the approved teacher example

The [sample manifest](scale4d_camera_distillation_sample.json) records the
immutable data revision, EMA identities, and both camera-mode comparisons.

```bash
python -m demo.scale4d_view_count download \
  --prefix examples/camera_distillation \
  --revision c47225339a26f37db38e9f5a11c95a3891ca9a1e \
  --output downloads --viewer-only
python -m demo.scale4d_view_count serve \
  --directory downloads/examples/camera_distillation/viewer --port 8000
```

Omit `--viewer-only` to obtain calibrated inputs, labels, and full predictions.
The saved teacher export and inference tools verify teacher role and checkpoint
identity before producing predictions. Decoder projection caching is limited
to one inference call; `--context-grid 0` evaluates only the scored queries.

## Earlier 65k gallery

The earlier close-to-GT gallery uses matched **65,000-step saved EMA teachers**.
It opens on the Show3D mouse example. Blue is B3, orange is B2, and green
is ground truth. Both teachers use the same three views and camera setting.

| Example | B2 OFF error | B3 OFF error | B2 ON error | B3 ON error |
| --- | ---: | ---: | ---: | ---: |
| Show3D ranch bottle, read ingredients | 5.55 cm | 3.74 cm | 3.92 cm | 3.33 cm |
| Show3D mouse, moving around | 16.15 cm | 9.61 cm | 8.65 cm | 7.93 cm |
| Show3D Parmesan can, cleaning the outside | 7.84 cm | 5.52 cm | 5.96 cm | 5.74 cm |
| PStudio juggling, camera 3 | 15.29 cm | 11.17 cm | 7.44 cm | 6.96 cm |

These are full-clip errors on every scored query, selected after evaluation.
B3 improves AJ and error in both settings on these clips. Selection prioritizes
a large camera-OFF improvement; a modest positive ON result is sufficient.
The mouse has the largest OFF error reduction among these examples (6.54 cm);
the ranch bottle is closest to GT. OFF gains exceed ON gains on all four clips. Screening
all 156 PStudio clips at both 40k and 65k did not find a clip with both a large
improvement and close whole-clip GT agreement in both camera settings.

The viewer initially shows queries with visible GT at each frame, with context
and trails off. **GT-visible queries** applies the same visibility mask to both
teachers; turn it off to show all predictions. No query is selected by its
prediction error, and all trajectories remain in the bundle. Scores always use
the complete scored clip. The ranch-bottle example opens at frame 8; the mouse
and can-cleaning examples open at frame 24. The timeline shows all 48 frames.
The two new examples display benchmark queries without an auxiliary context grid.

The mouse initially displays 128 fixed, evenly spaced query IDs to reduce overlay
clutter. The same IDs apply to both teachers and GT in both camera settings and
throughout the clip. **Query density** restores all 1,736 queries or selects 64,
128, or 256. Sampling depends only on query order, independently of prediction
errors. It changes the display density; raw trajectories and full-clip scores
remain unchanged.

```bash
python -m demo.scale4d_view_count serve \
  --directory outputs/scale4d_teacher_close_gt_65k/viewer --port 8000
```

## Earlier 40k gallery

This example uses the saved EMA teachers from the EgoDextera 50:50 camera-distillation
experiment at 40,000 fine-tuning steps. Both runs start from the same pre-Forge 50k
initializer. B2 and B3 are separately trained teacher checkpoints.

The shared HTML viewer compares B3's EMA teacher against B2's EMA teacher using
the same three RGB views and queries. **Teacher input · both layers** switches
both models together between camera OFF and camera ON, preserving matched inputs.

PStudio `softball_8`, HOT3D clip 002143, and the Show3D keyboard example improve
both AJ and EPE in both settings. The Parmesan example remains available with its mixed ON result.

| Example, camera ON | B3 AJ | B2 AJ | B3 EPE | B2 EPE |
| --- | ---: | ---: | ---: | ---: |
| PStudio softball, camera 8 | 69.82 | 60.90 | 7.80 cm | 9.34 cm |
| HOT3D clip 002143 | 52.74 | 50.03 | 8.66 cm | 9.21 cm |
| Show3D keyboard | 66.42 | 61.11 | 6.91 cm | 9.11 cm |

These selected examples show retained/improved ON performance relative to B2.
The complete 40k ON benchmark results are mixed, including AJ regressions on
DROID and Forge. They do not establish a universal no-harm claim. B3 versus B2
measures the camera-distillation contrast; both arms use self-training.
All displayed weights are saved EMA weights, with 40,000 EMA updates and decay
0.99999; student weights are excluded from the inference exports.

At 40k, dataset-average AJ improves by 3.87 percentage points on HOT3D
(95% paired clip-bootstrap interval 1.66–6.08) and 2.56 on Show3D
(2.14–3.00). ADT, Forge, DROID, and DexYCB results are mixed. These selected
qualitative examples illustrate improvements; they do not establish a universal
benefit across datasets or training seeds.

The benchmark overlays use native metric XYZ, as the linked experiment does.
They contain every benchmark query, plus an unscored 32×32 context grid. The RGB
camera, orbit camera, and timeline remain fixed when switching teacher states.
No scale or pose fitting is applied.

The fresh teacher replay agrees with the experiment within 0.02 AJ percentage
points and 0.01 cm mean endpoint error on these clips. The viewer shows the fresh
replay scores. Minor numerical differences arise between the standalone query
path and the original cached-decoder evaluation.

## Open the example

```bash
python -m demo.scale4d_view_count serve \
  --directory outputs/scale4d_distillation_teacher_off/viewer --port 8000
```

The final HTML is self-contained and supports sandboxed frames without network
access. Blue is B3 EMA and orange is B2 EMA; both use the selected matched setting with three views.

## Export and run the teacher

```bash
python -m d4rt_scripts.export_scale4d_teacher \
  --checkpoint checkpoint_iter_000040000.pt --output /tmp/teacher_export \
  --expected-source-sha256 SOURCE_CHECKPOINT_SHA256
python -m d4rt_scripts.demo.scale4d_teacher_sample \
  --teacher /tmp/teacher_export \
  --input outputs/scale4d_distillation_teacher_off/inputs/hot3d.npz \
  --labels outputs/scale4d_distillation_teacher_off/labels/hot3d.npz \
  --output /tmp/hot_teacher.npz --model-label B3 --camera off --device cuda:0
```

The exporter validates the source checkpoint, saved EMA update count, model
configuration, tensor keys, shapes, and dtypes before writing the teacher's
SCALE4D-compatible safetensors file. Its teacher-state SHA-256 matches the existing
experiment receipt. Teacher checkpoint files are retained locally for inference;
the example result bundle contains their identities and predictions.

PStudio was excluded from the original dashboard. A new matched 40k EMA evaluation
screened 156 PStudio camera-specific clips; 23 improved both AJ and EPE under
both ON and OFF. `softball_8` has ON AJ 69.82 vs 60.90 and OFF AJ 46.03 vs 36.94
(B3 vs B2), with identical input cameras 8, 25, and 11 in both settings.