Depth model · small
nrs-edge. A small model for the robot itself.
Two cameras, like two eyes. This small ML model works out how far away each point is. It is designed for the small computer inside a robot. Our large model, nrs-large, was its teacher. The network design, Lite Any Stereo V2, is from another team. The trained weights are ours.
nrs-edge version 0.1.0 Free download Technical note: PDF. Author: Sumedh Bouddh
- 6 millionparameters. nrs-large has 57 million.
- 1 of 3pass marks passed. We set the three pass marks before the test.
- 3.18 msfor one 640×400 pair on a desktop RTX 5090. Not measured on a robot's computer yet.
- One command
pip install nrs-edge
For engineers
nrs-edge 0.1.0
Free to download under Apache-2.0, also for commercial use. Code and model card. Weights.
- Task
- Dense stereo matching, as nrs-large: a rectified pair in, the disparity of the left image out. One forward pass, no iterations. Disparity range 0 to 192 px.
- Architecture
- Lite Any Stereo V2, size S, by Jing and others (open code, MIT licence): FasterNet-T0 feature network, correlation volume at 1/4 resolution, cost aggregation, softmax disparity regression. The network design is not ours. The trained weights are ours.
- Size
- 6.04 M parameters. Files: safetensors (PyTorch) and ONNX (FP32 and FP16, 640×480 and 640×400).
- Training
- No weights of another group and no ImageNet weights. 256,471 computer-made pairs with true labels, and 95,316 real pairs with labels from nrs-large (the teacher). 13 data sources; each one is listed with its licence in the attribution file. Four training stages, after a short pre-stage for the feature network.
- Evaluation
- Our harness; the same test sets as nrs-large. Three pass marks fixed before the test (pre-registered): “Near” passed; “Floor” failed (2 of 4 sets, 3 are needed); “Stretch” not reached (ETH3D 5.09 against 4.11, KITTI 2015 5.57 against 4.01). Each candidate was scored one time. The model card lists every scoring, also the 3 failed attempts.
- Speed
- Not measured on a robot's computer. Our aim is a Jetson Orin Nano class board; this is an aim, not a result. On a desktop RTX 5090: 3.18 ms for one 640×400 pair (median, TensorRT FP16). A desktop number is not a number for a robot's computer.
- Install
pip install nrs-edge, thennrs-edge check. The check downloads the weights (about 24 MB, no login), runs three example pairs and must print PASS. This path uses ONNX Runtime and needs no PyTorch. The package is on PyPI; in Python:import nrs_edge.- Platforms
- Windows (x86-64) and Linux (x86-64 and ARM64). The Linux install and both run paths are tested automatically on the CPU, on every change. For NVIDIA Jetson there is a guide and a script that builds the TensorRT engine on the board; they have not run on a Jetson yet. Linux with a GPU is not tested.
- Limits
- Weak on glass, mirrors and screens, and on near objects with a large disparity. A disparity above 192 px is always wrong. It answers every pixel and gives no confidence value. It needs a rectified pair. The full list is in the model card.
- Technical note
- nrs-edge: a 6-million-parameter stereo network trained on data with permissive stated terms, with a full record of the failed attempts (PDF, version 1.0, 25 November 2026). Author: Sumedh Bouddh. It gives the data sources, the training stages, the pass marks, every scoring and the limits. It is not a full recipe: the training code is not released.
nrs-edge against nrs-large (lower is better)
The share of pixels whose answer is off by more than 1, 2 or 3 pixels, on public sets of real photos. The two KITTI rows of nrs-edge are not zero-shot: its training data has other driving photos (DrivingStereo). No photo of a test set was used in training.
| Test set | Measure | nrs-edge6.04 M parameters | nrs-large57.4 M parameters |
|---|---|---|---|
| Middlebury (half size)indoor scenes | bad-2 | 12.71 % | 3.91 % |
| Middlebury 2021indoor scenes | bad-2 | 30.07 % | 8.44 % |
| ETH3Dindoor and outdoor | bad-1 | 5.09 % | 2.04 % |
| KITTI 2012city streets | bad-3 | 4.62 % | 3.38 % |
| KITTI 2015city streets | bad-3 | 5.57 % | 4.59 % |
| Booster (quarter size)glass, mirrors and screens | bad-2 | 28.63 % | 9.22 % |
nrs-edge in a 3-D map: on one walk with a hand-carried camera, we built the same map three times, with depth from 32-path SGM, nrs-large and nrs-edge. Compare the three maps.