This is the repository reference for offline NeuralDepth evaluation on stereo datasets. Use it when you need accuracy metrics and saved outputs from host-supplied stereo pairs instead of a live visualizer demo.
- You need NeuralDepth accuracy evaluation on a dataset.
- You want EPE, bad-pixel metrics, and density reported per scene and in aggregate.
- You need host-supplied stereo pairs sent to a connected device.
- You need a live camera demo.
- You need standalone packaging.
- You need generic stereo benchmarking unrelated to NeuralDepth.
Category:neural-networks/depth-estimation/neural-depth/host_evalShape:evalPrimary task:evaluate NeuralDepth variants on stereo datasetsEntrypoint:main.pyStandalone path:noneFrontend:noneRuns on:host mode only; requires a reachable device and a stereo dataset on diskRequires:dataset scenes withim0.png,im1.png, and optionaldisp0.pfmInput:host-loaded stereo image pairsOutput:saveddisparity.pngfiles plus printed metricsModels:NeuralDepth device-zoo variants mapped in main.pyVisualizer / UI:none
- The script walks a dataset folder and finds scenes containing left/right stereo images.
- It maps the requested NeuralDepth variant to a device-zoo model and inference size.
- Host code wraps the stereo images into
dai.ImgFramemessages and sends them to aNeuralNetworknode through explicit input queues. - Predictions are postprocessed into disparity visualizations and metric summaries and then written to the output directory.
- This is not a Visualizer example; it writes files and prints metrics.
- The CLI uses
--device_ip, not the usual--device. - Dataset layout is opinionated and effectively Middlebury-style.
- Metric computation is only available when ground-truth disparity exists.
- neural-networks/depth-estimation/neural-depth: use this when you need the live NeuralDepth demo
- neural-networks/depth-estimation/foundation-stereo: use this when you want a heavy host stereo comparison baseline
- depth-measurement/stereo-on-host: use this when you need host stereo comparison rather than NeuralDepth evaluation
Run:python3 main.py --dataset <DATASET_DIR> --output <OUTPUT_DIR> --device_ip <IP>Success looks like:per-scene outputs are written under the output directory and aggregate metrics print at the endCommon failure meaning:the dataset layout is wrong, the target device is unreachable, or the chosen NeuralDepth variant does not match the intended evaluation setup