StereoViT: Stereo Vision Transformer for Robust Robot Manipulation
Code · Project page · Demo
Weights of StereoViT, which turns a stereo pair into accurate metric depth in a single fast forward pass.
| Model | Params | Use |
|---|---|---|
stereovit-m | 176 M | fast inference, robotics |
stereovit-l | 474 M | highest quality: best zero-shot disparity and metric point clouds |
stereovit-l-bench | 474 M | StereoViT-L fine-tuned on real data (Middlebury, KITTI, ...) for the stereo leaderboards |
Usage
pip install git+https://github.com/cvg/stereovit.git
import numpy as np
from PIL import Image
from stereovit import StereoViT, disparity_to_depth
model = StereoViT.from_pretrained("stereovit-l") # downloads the weights from this repo
left = np.array(Image.open("left.png").convert("RGB")) # rectified pair
right = np.array(Image.open("right.png").convert("RGB"))
disp = model.infer(left, right) # H x W disparity (px)
depth = disparity_to_depth(disp, fx=1050.0, baseline=0.12) # metres
See the code repository for the demo, evaluation, training and leaderboard submissions.
Zero-shot results
Trained on synthetic data only, all pixels; inference cost on one GH200 (bfloat16, compile=True):
| Model | ETH3D BP-1 / EPE | Middlebury-Q BP-2 / EPE | KITTI 2012 D1 / EPE | KITTI 2015 D1 / EPE | Latency | Memory |
|---|---|---|---|---|---|---|
stereovit-m | 0.54 / 0.14 | 2.05 / 0.36 | 2.57 / 0.71 | 2.97 / 0.89 | 31 ms | 0.7 GB |
stereovit-l | 0.48 / 0.13 | 1.82 / 0.33 | 2.61 / 0.71 | 3.23 / 0.94 | 75 ms | 1.4 GB |
License
CC BY-NC 4.0 (non-commercial use).
Citation
@article{zhang2026stereovit,
title = {StereoViT: Stereo Vision Transformer for Robust Robot Manipulation},
author = {Zhang, Dingxi and Gavryushin, Alexey and Schiele, Bernt and Pollefeys, Marc and Xu, Haofei},
journal = {arXiv preprint arXiv:XXXX.XXXXX},
year = {2026}
}