Skip to content

Open weightsBy PromptFission3 min read

StereoViT turns two camera views into depth in one pass, with a 176M model at 31 ms

An ETH Zurich-led team releases stereo depth transformers trained only on synthetic data. The repo gives its own scores but no rival rows, and the paper is not linked yet.


Model
StereoViT-M and StereoViT-L
Maker
Zhang et al., ETH Zurich
Size
176M (M), 474M (L)
License
CC BY-NC 4.0
Weights
Promised

Give a robot two cameras a few centimetres apart and it can work out distance from how far each point shifts between the two images. That shift is called disparity, and it is hard to find on glass and polished metal, which is the case the authors say they are after. StereoViT is a pair of transformer models for the job, from Dingxi Zhang, Alexey Gavryushin, Bernt Schiele, Marc Pollefeys and Haofei Xu, with affiliations at ETH Zurich, the Max Planck Institute for Informatics, Microsoft and KE:SAI. The code landed in a single commit on November 26.

A note on status. The README says the weights are on Hugging Face as Kristen-Z/StereoViT and download on first use. Hugging Face was not reachable from our build machine, so our tracker lists the weights as promised until we have seen the files. By the authors’ account they are out now. The README’s paper link is still a placeholder, and the project page would not load either, so everything below comes from the GitHub repo, including its config and model code.

How it works

Many stereo networks build a cost volume, a large table scoring every candidate shift for every pixel, and then refine an estimate over several iterations. The model file here contains neither. It is described there as an encoder shared by both views followed by a cross-view transformer decoder, and the README’s summary is that depth comes out of “a single fast forward pass”.

The encoder for the large model is a ViT-L that starts from Depth Anything V2, a single-image depth model, so it arrives already knowing something about shapes. Both images go through it, and the decoder, eight blocks in the large config, lets the two sets of features attend to each other.

The output head treats disparity as a multiple-choice question. For each image patch it scores 128 candidate shifts spaced 8 pixels apart, up to 1,016 pixels, and takes the probability-weighted average. That coarse map is then sharpened to full resolution with learned blending weights.

The model outputs disparity in pixels. To get distances in metres you supply the camera’s focal length and the gap between the lenses.

The README says these models were trained on synthetic data only. The config lists 13 training sets, among them FoundationStereo’s dataset, TartanAir, SceneFlow and Virtual KITTI 2, and the released run used 64 GPUs for 200,000 steps.

The benchmarks

These are the authors’ numbers, from the README. All are zero-shot, meaning the models were not trained on these benchmarks. Lower is better throughout. The first figure in each pair is the percentage of pixels that are wrong by more than a threshold, the second is the average error in pixels.

Model ETH3D Middlebury-Q KITTI 2012 KITTI 2015 Latency Memory
StereoViT-M (176M) 0.54 / 0.14 2.05 / 0.36 2.57 / 0.71 2.97 / 0.89 31 ms 0.7 GB
StereoViT-L (474M) 0.48 / 0.13 1.82 / 0.33 2.61 / 0.71 3.23 / 0.94 75 ms 1.4 GB

Latency and memory were measured on one GH200 in bfloat16 with compilation on, which the README says costs a one-off wait of one to four minutes.

The table has no rival models in it, so it cannot tell you whether StereoViT beats FoundationStereo or anything else. What it does show is the two sizes against each other. The large model wins on ETH3D and Middlebury. On both KITTI driving sets the medium model is level or ahead, at less than half the latency and half the memory. The README itself points robotics users to the smaller one.

There are loose ends. A third checkpoint, fine-tuned on real data for leaderboard submissions, has no scores in the README. The robot claims, robustness on glass and metal and features that help manipulation policies in unseen scenes, come with no numbers in the repo. We found no independent results.

Try it yourself

pip install git+https://github.com/cvg/stereovit.git. The README asks for Python 3.10 or newer, PyTorch 2.4 or newer, and a CUDA GPU that supports bfloat16. The repo includes evaluation scripts and training configs. Code and weights are CC BY-NC 4.0, so non-commercial use only.

We have not run the model. This is based on the README, the training config and the model source file.