Official codebase for "Visual Autoregressive Modelling for Monocular Depth Estimation". Paper: https://arxiv.org/pdf/2512.22653
Stage 1 fine-tunes the Switti depth prior with RGB conditioning. Stage 2 trains the conditional diffusion upsampler with RGB + coarse depth input.
# Run both stages in order
python train_main.py --stage both
# Run only stage 1
python train_main.py --stage 1
# Run only stage 2
python train_main.py --stage 2
python switti/train_depth.py \
--version v2 \
--save 500 \
--samples 25
python switti/train_depth_diffusion_upsample.py \
--height 384 \
--width 640 \
--batch_size 4 \
--max_steps 100000
Use the depth adapter pipeline (stage 1) and optionally the diffusion upsampler (stage 2).
python switti/infer_depth_adapter_pipeline.py \
--bundle-dir checkpoints/depth_adapter_pipeline/v2 \
--input path/to/rgb.png \
--output depth_pred.png \
--prompt "a photo of a street"
python switti/infer_depth_adapter_pipeline.py \
--bundle-dir checkpoints/depth_adapter_pipeline/v2 \
--input path/to/rgb.png \
--output depth_pred_upsampled.png \
--upsampler-ckpt checkpoints/diffusion_depth_upsample/ckpt_step_0001000.pt \
--upsampler-height 384 \
--upsampler-width 640
3 commits
Python
99.7%
Official codebase for "Visual Autoregressive Modelling for Monocular Depth Estimation". Paper: https://arxiv.org/pdf/2512.22653
Stage 1 fine-tunes the Switti depth prior with RGB conditioning. Stage 2 trains the conditional diffusion upsampler with RGB + coarse depth input.
# Run both stages in order
python train_main.py --stage both
# Run only stage 1
python train_main.py --stage 1
# Run only stage 2
python train_main.py --stage 2
python switti/train_depth.py \
--version v2 \
--save 500 \
--samples 25
python switti/train_depth_diffusion_upsample.py \
--height 384 \
--width 640 \
--batch_size 4 \
--max_steps 100000
Use the depth adapter pipeline (stage 1) and optionally the diffusion upsampler (stage 2).
python switti/infer_depth_adapter_pipeline.py \
--bundle-dir checkpoints/depth_adapter_pipeline/v2 \
--input path/to/rgb.png \
--output depth_pred.png \
--prompt "a photo of a street"
python switti/infer_depth_adapter_pipeline.py \
--bundle-dir checkpoints/depth_adapter_pipeline/v2 \
--input path/to/rgb.png \
--output depth_pred_upsampled.png \
--upsampler-ckpt checkpoints/diffusion_depth_upsample/ckpt_step_0001000.pt \
--upsampler-height 384 \
--upsampler-width 640
3 commits
Python
99.7%