Download examples/camera_distillation/README.md from facebook/SCALE4D: direct link, hf CLI and curl.
- Browser
- Download file 2.44 kB
-
https://huggingface.co/facebook/SCALE4D/resolve/main/examples/camera_distillation/README.md
- Command line
-
hf download hf://facebook/SCALE4D/examples/camera_distillation/README.md
-
curl -L -o README.md https://huggingface.co/facebook/SCALE4D/resolve/main/examples/camera_distillation/README.md
SCALE4D camera-distillation EMA teachers
This approved RGB example uses HOT3D clip 002901 and matched saved EMA teachers at 30,000 fine-tuning steps. B3 uses camera-conditioned targets during self-training; B2 uses camera-OFF self-labeling. Both teacher layers use identical three-view inputs and the same selected camera mode.
| 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%; the ON reduction is 28.6%. These are selected qualitative results, measured using native XYZ and the 5/10/20/40 cm thresholds. Scoring uses frames strictly after each query time. No scale or pose fitting is used.
All 14,558 benchmark query trajectories are retained. The viewer opens on RGB camera 0 and frame 24, showing 128 fixed query IDs shared by B2, B3 and GT. Use Query density to restore all points. Full-clip scores always use the full scored query set. Blue is B3, orange B2, and green GT. The Teacher input selector switches both layers together between camera OFF and ON.
Inputs, evaluator-only labels, saved predictions, model configs, teacher identities,
and verification receipts are included. Teacher weight exports can be supplied
locally to rerun inference. Source code, archive, and wheel are available under
examples/visualizer_code in the same model repository.
python -m demo.scale4d_view_count serve --directory viewer --port 8000
python -m demo.scale4d_view_count build --assets viewer --output /tmp/teacher.html
python -m demo.scale4d_view_count.distillation --bundle . --output /tmp/teacher_assets
To rerun a saved EMA teacher export on the approved benchmark queries:
python -m d4rt_scripts.demo.scale4d_teacher_sample \
--teacher /path/to/B3_teacher_export --model-label B3 \
--input inputs/hot3d_002901.npz --labels labels/hot3d_002901.npz \
--camera both --context-grid 0 --output /tmp/B3_predictions.npz --device cuda:0
The source-checkpoint and teacher-state SHA-256 values are in model_configs/
and verification/teacher_sources.json. Source checkpoints were verified,
EMA tensors matched the experiment receipts, and all four fresh XYZ inference
results reproduced the original scores. The HTML is self-contained and passed
opaque-origin, network-disabled sandbox checks with matched RGB frames.