InfSCALE4D / README.md
dliu1014's picture
Replace Pluecker49k with50k and add MCPE10k streaming checkpoint
0c689bd verified
|
Raw History Blame Contribute Delete
3.35 kB
metadata
library_name: pytorch
tags:
  - video
  - 3d-point-tracking
  - streaming
  - forecasting
  - plucker-rays
  - camera-conditioning

InfSCALE4D streaming checkpoints

Two calibrated multiview D4RT streaming models are available:

Model Streaming fine-tuning step Pretrained checkpoint step Folder
Plücker rays 50,000 100,000 Repository root
MCPE 10,000 140,000 mcpe/10k/

The default Plücker export replaces the earlier 49k snapshot on main. The earlier snapshot remains accessible through its original commit. Both models consume synchronized two-frame tubelets causally and generate feature grids for the next four frames. A shared relative-time decoder reads observed and predicted features to recover 3D point trajectories.

Load a model

Use the accompanying InfD4RT checkout containing nets/wdm_streaming:

import torch
from nets.wdm_streaming.api import from_pretrained, make_stream

# Plücker 50k
plucker, plucker_info = from_pretrained('dliu1014/InfSCALE4D', device='cuda')

# MCPE 10k
mcpe, mcpe_info = from_pretrained(
    'dliu1014/InfSCALE4D', subfolder='mcpe/10k', device='cuda',
)
stream = make_stream(mcpe, autocast_dtype=torch.bfloat16)

Pass revision= to pin an immutable Hub commit. The model configuration and weight identity are stored in each folder's config.json and release.json. The native tensor values and FP32 dtype are preserved losslessly in safetensors. Optimizer, RNG and data-loader state are omitted.

Inputs and outputs

RGB input is (B,V,3,2,224,224) with ImageNet normalization, using a fixed world coordinate frame and synchronized view order. Up to three views are supported. Plücker input is direction followed by origin × direction. MCPE uses camera poses, intrinsics and measured gravity in the same world frame.

Queries specify source pixel/frame/view, target frame, normalized source image patch and an observed output-camera time. The six outputs are camera-frame 3D position, normalized 2D position, visibility logits, camera-frame displacement, camera-frame normal and confidence logits. Convert 3D outputs using the known query-camera pose.

The recent KV window is bounded to 24 tubelets. Register long-lived query and camera feature anchors before their grids leave this window. Future RGB and camera observations are not forecasting inputs. MCPE fixes its origin and cap20 normalization scale from the initial observed pair; later camera positions are not continuously bounded to a 20-meter span.

Snapshot identity and verification

  • Plücker 50k: 995 tensors, 6,057,485,564 bytes.
  • MCPE 10k: 1954 tensors, 6,364,878,316 bytes.
  • Both exports preserve every source model tensor exactly and load strictly.
  • Native/standalone inference comparisons use real calibrated RGB inputs; MCPE's gravity input is an explicit test control. These checks establish execution and port fidelity, not benchmark accuracy or checkpoint ranking.

Fine-tuning steps count consumed training batches; skipped optimizer updates, if any, are not represented by a separate counter in these exports. Both training histories retain the audited past-source-anchor, tracking-focal and minimum-moving-share differences from the mini-d4rt training recipe. Their contribution to model quality has not been isolated.