nrs-edge
a compact stereo depth map model for robotics
2 min readupdated
The nrs-edge model by Necessity Robotics solves the task of computing a disparity map (pixel offset difference) and metric depth from a rectified stereo image pair. It is built on a lightweight LiteAnyStereo v2 architecture (size S, 6.04 million parameters) and designed to run on edge computers like Jetson Orin Nano. The model outputs pixel-level disparity in a single forward pass without iterations. It will be useful for robotics developers and computer vision engineers who need fast, real-time depth estimation.
Key features
- Compactness: only 6.04 million parameters (LAS2-S architecture with FasterNet-T0).
- Accuracy: trained on synthetic and real datasets (including TartanAir, DrivingStereo, and proprietary recordings) using specialized teacher models.
- Weight formats: available in safetensors (PyTorch) and ONNX formats (FP32 and FP16 with fixed resolutions of 480x640 and 400x640).
- License: the model is distributed under the open Apache-2.0 license.
What you can do
- Robot integration: run the model on edge hardware via ONNX Runtime or TensorRT to compute a navigational depth map.
- Stereo pair processing: feed rectified RGB stereo pairs as input to obtain pixel-level disparity up to 192 pixels.
- Metric depth calculation: convert the resulting disparity into meters using the camera's focal length and baseline.
- ONNX experiments: use ready-made FP16 graphs to optimize inference on graphics cards or edge devices.
Example
An example of model inference and data preparation can be found in the authors' repository at [github.com/necessityrobotics/nrs-edge](https://github.com/necessityrobotics/nrs-edge), using standard scripts for PyTorch or ONNX Runtime.
Read more
DetailsParameters: 6.04M (6,040,420).
Architecture: LiteAnyStereo v2 (size S), FasterNet-T0 feature extraction.
Benchmarks (candidate B): Middlebury-H bad-2: 12.71, ETH3D bad-1: 5.09, KITTI-15 bad-3: 5.57.
License: Apache-2.0.










Comments