This guide covers the current IGEV++ export and runtime workflow for ag-cam-tools.
The export is tied to the calibration resolution and disparity range.
cd ~/code
git clone https://github.com/gangweiX/IGEV-plusplus.git
Use the SceneFlow checkpoint from the upstream project and place it under:
~/code/IGEV-plusplus/pretrained_models/igev_plusplus/
cd backends
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-onnx-export.txt
python -m ipykernel install --user --name agrippa-export --display-name "agrippa-export"
Open backends/1.Export_IGEV.ipynb and run it with the agrippa-export kernel.
The notebook:
If the calibration changes materially, re-export the model.
The runtime build can discover ONNX Runtime either through pkg-config or ONNXRUNTIME_HOME.
export ONNXRUNTIME_HOME=/path/to/onnxruntime
make clean && make
The build should indicate that ONNX Runtime support is enabled.
ag-cam-tools depth-preview-neural \
-a 192.168.0.201 \
-A \
-r calibration/calibration_YYYYMMDD_HHMMSS \
--stereo-backend onnx \
--model-path models/igev_plusplus.onnx