SCALE4D / examples /visualizer_code /source /docs /scale4d_camera_ablation.md
dliu1014's picture Xuweiyi's picture meta-bot's picture
Initial data commit
9c890d3
|
Raw History Blame Contribute Delete
4.25 kB

Camera conditioning ON versus OFF

The current gallery features color-video examples from DexYCB and ADT. It opens on DexYCB subject 05. Both layers use identical three-view images and queries with the same frozen 140k SCALE4D weights; only camera conditioning changes.

Example AJ ON AJ OFF Mean error ON Mean error OFF
DexYCB subject 05 88.27 44.31 3.58 cm 14.62 cm
DexYCB subject 02 86.14 41.06 4.34 cm 18.79 cm
ADT skeleton decoration 96.63 60.32 1.81 cm 9.66 cm

These are selected qualitative examples from matched ON/OFF evaluations. The new gallery provides a larger improvement and closer camera-ON GT agreement than the earlier Show3D mug example (7.64 cm ON versus 11.96 cm OFF). The earlier ten PStudio/Show3D pairs and their complete screening scores remain in the bundle; the original gallery is pinned at data revision 1d5ce7d414e610d7ad805a33c733b24939cdcce7.

Display and scoring

Blue is camera ON, orange is camera OFF, and green is GT. The display uses a color camera: physical camera 6 for DexYCB, and the RGB camera for ADT. ADT's side SLAM cameras are monochrome. Show3D's released videos are monochrome.

All benchmark queries are retained. GT-visible queries applies the same annotation visibility mask to both prediction layers. Query density can reduce clutter using fixed, evenly sampled query IDs shared by all layers; it does not alter the raw trajectories or full-clip scores. The new examples open with all queries, no trails, and no auxiliary context grid.

Scores use native metric UV-depth positions, original visibility annotations, and the 5/10/20/40 cm threshold ladder. No scale or pose fitting is applied. DexYCB retains its original 24 frames in the data and viewer; inference repeats its last frame internally to satisfy the 48-frame encoder, then returns the original frame count. ADT has 48 frames. RGB frames and 3D overlays stay matched when switching examples or camera settings.

Download the approved examples

The two DexYCB examples are listed in the sample manifest, including immutable data/model revisions, query fingerprints, camera IDs, and full-clip scores. Fetch the viewer from the verified data revision:

python -m demo.scale4d_view_count download \
  --prefix examples/camera_conditioning \
  --revision a6b7b65622a25ae6c370bdc59b01495fcc0ce046 \
  --output downloads --viewer-only
python -m demo.scale4d_view_count serve \
  --directory downloads/examples/camera_conditioning/viewer --port 8000

Omit --viewer-only to fetch calibrated inputs, labels, and paired results. Hugging Face authentication is required while the repository is private.

Open or rebuild

python -m demo.scale4d_view_count serve \
  --directory outputs/scale4d_camera_ablation/viewer --port 8000
python -m demo.scale4d_view_count build \
  --assets outputs/scale4d_camera_ablation/viewer --output /tmp/camera_ablation.html

The data and HTML and standalone source are available on Hugging Face. The final HTML embeds the scene data and videos, and supports opaque-origin sandbox frames without network access. NumPy is sufficient to rebuild it; viewing requires no GPU.

Reproduce inference

Calibrated inputs, labels, and paired results for the new examples are included in inputs/, labels/, and screening/. Source videos remain uint8 through OpenCV resizing; attention uses BF16 and output heads use FP32.

python -m d4rt_scripts.demo.scale4d_camera_ablation \
  --input outputs/scale4d_camera_ablation/inputs/dexycb_subject05.npz \
  --labels outputs/scale4d_camera_ablation/labels/dexycb_subject05.npz \
  --views 3 --output /tmp/dexycb_camera_pair --device cuda:0

Fresh inference reproduces all six new ON/OFF prediction arrays and scores exactly. Saved artifact receipts verify identical input/query fingerprints, three views, native metric coordinates, and the 140k checkpoint identity. manifest.json inventories file sizes and SHA-256 checksums.