Views
No views yet
⚠️ Hardware / software compatibility
The.enginefile is a serialized TensorRT binary and is NOT portable across GPU architectures, TensorRT versions, or CUDA versions. It will load only on the exact configuration it was built against:
Requirement Value GPU Jetson AGX Orin (Ampere SM87) JetPack 6.0 TensorRT 10.3 CUDA 12.6 Input shape 480 × 640 For any other hardware / version (Thor SM110, RTX 4090/5090, Orin on JetPack 6.1+, etc.), the engine will fail to deserialize. You must rebuild it locally using the FlashStereo repo's build scripts. The.calibfile in this release is portable, so you can reuse it to skip the 5-minute INT8 calibration step:bash1pip install huggingface_hub 2huggingface-cli download saofund/flashstereo-int8-orin \ 3 calib_cache/feature_runner_int8.engine.calib --local-dir . 4python scripts/build_int8.py \ 5 --onnx /path/to/feature_runner.onnx \ 6 --engine-out artifacts/feature_runner_int8.engine \ 7 --cache calib_cache/feature_runner_int8.engine.calib \ 8 --calib-dir assets/calib_pairs
engines/
feature_runner_int8.engine # 19 MB, hardware-specific (see compatibility table above)
calib_cache/
feature_runner_int8.engine.calib # 50 KB TRT entropy cache (portable across hardware/TRT versions)1python scripts/download_calib_data.py --out-dir assets/calib_pairs --n 16
2python scripts/build_int8.py \
3 --onnx /path/to/feature_runner.onnx \
4 --engine-out artifacts/feature_runner_int8.engine \
5 --calib-dir assets/calib_pairspost_runner_int8.engine is intentionally omitted from this release —
building it takes ~45 minutes of GPU time and produces a 14 MB engine.
Users on the target hardware can build it themselves in one command
once they have the FP16 engine:1python scripts/gen_post_calib_data.py \
2 --feat-engine /path/to/feature_runner.engine \
3 --post-engine /path/to/post_runner.engine \
4 --calib-dir assets/calib_pairs \
5 --out-dir artifacts/post_calib
6
7python scripts/build_int8_post.py \
8 --onnx /path/to/post_runner.onnx \
9 --engine-out artifacts/post_runner_int8.engine \
10 --npz-dir artifacts/post_calib| Item | Value |
|---|---|
| Calibration data | Middlebury 2014 "perfect" subset (16 scenes, resized to 480×640 grayscale) |
| Calibration algorithm | TensorRT IInt8EntropyCalibrator2 |
| Source ONNX | FoundationStereo two-stage feature_runner.onnx (480×640 dynamic batch) |
| Target | Jetson AGX Orin SM87, TensorRT 10.3, CUDA 12.6 |
| Disparity quality vs. FP16 | cosine 0.999998, mean L1 0.04 px, rel L1 0.06% |