Model card synced with fastforks 7204e33f
Browse files
README.md
CHANGED
|
@@ -65,6 +65,12 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `selective-igev-eth3d-finetune
|
|
| 65 |
| --- | --- | --- | --- | --- | --- | --- |
|
| 66 |
| `selective-igev-eth3d-finetune` | 0.36 (375x1242) | 0.50 | 0.14† | 2.25 (375x1242) | 1.02† | 0.35† |
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
### Fixed-size speed and peak memory, all models
|
| 69 |
|
| 70 |
| model | mode | 640x480 | 1280x720 | 1920x1080 | 12 MP 4000x3000 |
|
|
@@ -84,6 +90,12 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `selective-igev-eth3d-finetune
|
|
| 84 |
| `selective-igev-sceneflow` | portable | 190.6 ms / 282 / 362 | 575.4 ms / 769 / 1036 | 1420.3 ms / 1690 / 2030 | 8917.6 ms (n=3) / 10549 / 14320 |
|
| 85 |
| `selective-igev-sceneflow` | kernels | 82.5 ms / 260 / 368 | 213.5 ms / 693 / 1010 | 473.3 ms / 1502 / 2046 | 2808.4 ms (n=3) / 6928 / 8800 |
|
| 86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
|
| 88 |
|
| 89 |
- `selective-igev-eth3d-train`, `selective-igev-kitti12`, `selective-igev-kitti15`, `selective-igev-middlebury-finetune`, `selective-igev-middlebury-train`, `selective-igev-sceneflow`: same network and settings as `selective-igev-eth3d-finetune`, measured once (rows not repeated).
|
|
@@ -128,7 +140,7 @@ Every variant is checked against golden outputs of the original code at its pinn
|
|
| 128 |
```python
|
| 129 |
from fastforks import stereo
|
| 130 |
|
| 131 |
-
model = stereo.load("selective-igev-eth3d-finetune") #
|
| 132 |
result = model("left.png", "right.png")
|
| 133 |
result.disparity # [H, W] float32 tensor, input resolution
|
| 134 |
result.backend # what ran, e.g. Backend(mode='portable', device='cuda:0', dtype='float16')
|
|
@@ -139,3 +151,5 @@ Install with `pip install fastforks` (see <https://github.com/kleinicke/fastfork
|
|
| 139 |
## Kernels backend
|
| 140 |
|
| 141 |
`stereo.load("selective-igev-eth3d-finetune", mode="kernels")` runs our CUDA kernels (`igev`, `cutlass_conv`, `cudnn_hacc`). It needs a prebuilt kernel for your GPU architecture (downloaded from <https://huggingface.co/fastforks/kernels> on first use) and a recent NVIDIA driver; if there is none it raises `BackendUnavailableError` with the reason and never falls back silently. `mode="auto"` picks `kernels` when it can run and logs the choice.
|
|
|
|
|
|
|
|
|
| 65 |
| --- | --- | --- | --- | --- | --- | --- |
|
| 66 |
| `selective-igev-eth3d-finetune` | 0.36 (375x1242) | 0.50 | 0.14† | 2.25 (375x1242) | 1.02† | 0.35† |
|
| 67 |
|
| 68 |
+
### torch.compile and TensorRT
|
| 69 |
+
|
| 70 |
+
| model | input | portable ms | compile ms | compile s (cold) | TensorRT fp16 ms | ONNX + build s | kernels ms | peak MiB (alloc / reserved): portable | compile | TensorRT (device) |
|
| 71 |
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
| 72 |
+
| `selective-igev-eth3d-finetune` | 994x1482 | 998.4 | 690.7 | 125.8 | 460.8 | 256 | 348.76 | 1238 / 1488 | 919 / 1088 | 1148 |
|
| 73 |
+
|
| 74 |
### Fixed-size speed and peak memory, all models
|
| 75 |
|
| 76 |
| model | mode | 640x480 | 1280x720 | 1920x1080 | 12 MP 4000x3000 |
|
|
|
|
| 90 |
| `selective-igev-sceneflow` | portable | 190.6 ms / 282 / 362 | 575.4 ms / 769 / 1036 | 1420.3 ms / 1690 / 2030 | 8917.6 ms (n=3) / 10549 / 14320 |
|
| 91 |
| `selective-igev-sceneflow` | kernels | 82.5 ms / 260 / 368 | 213.5 ms / 693 / 1010 | 473.3 ms / 1502 / 2046 | 2808.4 ms (n=3) / 6928 / 8800 |
|
| 92 |
|
| 93 |
+
### Apple silicon (MPS)
|
| 94 |
+
|
| 95 |
+
| model | `portable` | `kernels` | speed-up |
|
| 96 |
+
| --- | --- | --- | --- |
|
| 97 |
+
| `selective-igev-sceneflow` | 2292 ms / 1727 MiB (float16) | 1878 ms / 1704 MiB | 1.22x |
|
| 98 |
+
|
| 99 |
Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
|
| 100 |
|
| 101 |
- `selective-igev-eth3d-train`, `selective-igev-kitti12`, `selective-igev-kitti15`, `selective-igev-middlebury-finetune`, `selective-igev-middlebury-train`, `selective-igev-sceneflow`: same network and settings as `selective-igev-eth3d-finetune`, measured once (rows not repeated).
|
|
|
|
| 140 |
```python
|
| 141 |
from fastforks import stereo
|
| 142 |
|
| 143 |
+
model = stereo.load("selective-igev-eth3d-finetune") # mode="auto": the preferred backend from recorded measurements
|
| 144 |
result = model("left.png", "right.png")
|
| 145 |
result.disparity # [H, W] float32 tensor, input resolution
|
| 146 |
result.backend # what ran, e.g. Backend(mode='portable', device='cuda:0', dtype='float16')
|
|
|
|
| 151 |
## Kernels backend
|
| 152 |
|
| 153 |
`stereo.load("selective-igev-eth3d-finetune", mode="kernels")` runs our CUDA kernels (`igev`, `cutlass_conv`, `cudnn_hacc`). It needs a prebuilt kernel for your GPU architecture (downloaded from <https://huggingface.co/fastforks/kernels> on first use) and a recent NVIDIA driver; if there is none it raises `BackendUnavailableError` with the reason and never falls back silently. `mode="auto"` picks `kernels` when it can run and logs the choice.
|
| 154 |
+
|
| 155 |
+
<!-- staged from fastforks 7204e33f (2026-11-05) -->
|