Update model card for 0.4.0
Browse files50 unmodified lines515253545556575859606162636465666768697071726 unmodified lines79808182838485868788899091929394959697989910010110210310410510610710810911011116 unmodified lines12812913013150 unmodified lines## Speed and memory### Flow, synthetic| model | input | time (ms): original fp32 | original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `raft-large` | 1080x1920 | 480 | 567 | 291 | 83.5 | 5.7x | 3.5x | 7164 / 10928 | 5930 / 6058 | 342 / 372 || `raft-large-kitti` | 1080x1920 | 480 | 567 | 291 | 83.6 | 5.7x | 3.5x | 7164 / 10928 | 5930 / 6058 | 333 / 352 || `raft-large-things` | 1080x1920 | 481 | 566 | 291 | 83.1 | 5.8x | 3.5x | 7164 / 10928 | 5930 / 6058 | 333 / 352 || `raft-small` | 1080x1920 | 196 | 395 | 144 | 36.3 | 5.4x | 4.0x | 7032 / 10888 | 5669 / 5706 | 197 / 224 |### Flow, KITTI 2015, 375x1242| model | time (ms): portable | kernels | kernels speed-up: vs portable | peak memory (MiB, allocated / reserved): portable | kernels || --- | --- | --- | --- | --- | --- || `raft-large` | 45.8 | 21.0 | 2.2x | 511 / 738 | 85 / 112 || `raft-large-things` | 45.8 | 21.1 | 2.2x | 511 / 738 | 85 / 112 || `raft-small` | 23.2 | 12.1 | 1.9x | 483 / 508 | 48 / 66 |### Startup and first call6 unmodified lines### torch.compile and TensorRT| model | input | time: portable | compile | TensorRT fp16 | kernels | preparation: compile (cold first call) | ONNX + engine build | peak MiB (alloc / reserved): portable | compile | kernels | TensorRT (engine + torch) || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `raft-large` | 1080x1920 | 291 ms | 195 ms | fails: TensorRT engine build failed | 83.5 ms | 41.3 s | β | 5930 / 6058 | 5886 / 5924 | 342 / 372 | β || `raft-large-kitti` | 1080x1920 | 291 ms | 195 ms | fails: TensorRT engine build failed | 83.6 ms | 39.3 s | β | 5930 / 6058 | 5886 / 5924 | 333 / 352 | β || `raft-large-things` | 1080x1920 | 291 ms | 195 ms | fails: TensorRT engine build failed | 83.1 ms | 39.4 s | β | 5930 / 6058 | 5886 / 5924 | 333 / 352 | β || `raft-small` | 1080x1920 | 144 ms | 110 ms | fails: unsupported: engine build needs more than the 16 GB of this | 36.3 ms | 37.0 s | β | 5669 / 5706 | 5704 / 5728 | 197 / 224 | β |Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).- `raft-large-kitti`: same network and settings as `raft-large`, measured once (rows not repeated).Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the original code named above at the precision of portable (fp16, or `(fp32)` where fp16 is unsupported or not finite); original fp32 = its default fp32 run. Peak memory is the torch allocator's.## Accuracy### On public datasetsFrames _10 -> _11 at full size against the flow_occ ground truth; EPE = mean of the per-pair mean end-point error, Fl-all = share of all valid pixels with an error > 3 px and > 5 % of the GT magnitude. Original = the original code named under Details, same checkpoint and protocol.| variant | dataset | original fp32 | original fp16 | portable | kernels | note ||---|---|---|---|---|---|---|| `raft-large` | KITTI 2015 train, EPE / Fl-all % | 1.528 / 5.60 | 1.528 / 5.60 | 1.529 / 5.61 | 1.526 / 5.60 | trained on this dataset's public images; not a zero-shot result || `raft-large-things` | KITTI 2015 train, EPE / Fl-all % | 4.838 / 16.55 | 4.831 / 16.54 | 4.828 / 16.51 | 4.834 / 16.53 | || `raft-large-kitti` | KITTI 2015 train, EPE / Fl-all % | 0.614 / 1.44 | 0.614 / 1.44 | 0.614 / 1.44 | 0.614 / 1.44 | trained on this dataset's public images; not a zero-shot result || `raft-small` | KITTI 2015 train, EPE / Fl-all % | 7.854 / 25.91 | 7.838 / 25.92 | 7.846 / 25.92 | 7.834 / 25.92 | |Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks f2992269+uncommitted, 2026-11-09.### Parity with the original code16 unmodified lines`flow.load("raft-large", mode="kernels")` runs our CUDA kernels (`raft_flow`, `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.<!-- staged from fastforks 1cbf1671 (2026-11-15) -->50 unmodified lines51525354555657585960616263646 unmodified lines717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111216 unmodified lines12913013113250 unmodified lines## Speed and memory### Flow, synthetic, 1080x1920| model | time (ms): original fp32 | original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `raft-large` | 480 | 567 | 283 | 83.4 | 5.7x | 3.4x | 7164 / 10928 | 5721 / 5758 | 332 / 352 || `raft-large-kitti` | 480 | 567 | 284 | 84.2 | 5.7x | 3.4x | 7164 / 10928 | 5721 / 5758 | 332 / 352 || `raft-large-things` | 481 | 566 | 283 | 83.5 | 5.8x | 3.4x | 7164 / 10928 | 5721 / 5758 | 332 / 352 || `raft-small` | 196 | 395 | 141 | 36.5 | 5.4x | 3.9x | 7032 / 10888 | 5601 / 5646 | 196 / 204 |### Startup and first call6 unmodified lines### torch.compile and TensorRT| model | input | time: portable | compile | TensorRT (fp16 unless shown) | kernels | preparation: compile (cold first call) | ONNX + engine build | peak MiB (alloc / reserved): portable | compile | kernels | TensorRT (engine + torch) || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `raft-large` | 1080x1920 | 283 ms | 195 ms | fails: unsupported: TensorRT 11 build at 1080x1920 needs a 20 GB My | 83.4 ms | 41.3 s | β | 5721 / 5758 | 5886 / 5924 | 332 / 352 | β || `raft-large` | 384x1248 | 72.5 ms | β | fails: unsupported: all-pairs correlation volume at 1080x1920: a Te | β | β | β | 468 / 650 | β | β | β || `raft-large-kitti` | 1080x1920 | 284 ms | 195 ms | fails: unsupported: TensorRT 11 build at 1080x1920 needs a 20 GB My | 84.2 ms | 39.3 s | β | 5721 / 5758 | 5886 / 5924 | 332 / 352 | β || `raft-large-kitti` | 384x1248 | 46.2 ms | β | fails: unsupported: all-pairs correlation volume at 1080x1920: a Te | β | β | β | 469 / 522 | β | β | β || `raft-large-things` | 1080x1920 | 283 ms | 195 ms | fails: unsupported: TensorRT 11 build at 1080x1920 needs a 20 GB My | 83.5 ms | 39.4 s | β | 5721 / 5758 | 5886 / 5924 | 332 / 352 | β || `raft-large-things` | 384x1248 | 72.7 ms | β | fails: unsupported: all-pairs correlation volume at 1080x1920: a Te | β | β | β | 468 / 650 | β | β | β || `raft-small` | 1080x1920 | 141 ms | 110 ms | fails: unsupported: engine build needs more than the 16 GB of this | 36.5 ms | 37.0 s | β | 5601 / 5646 | 5704 / 5728 | 196 / 204 | β || `raft-small` | 384x1248 | 29.1 ms | β | 20.7 ms, fp32 engine | β | β | 178 s | 404 / 488 | β | β | 803 / 820 |Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the original code named above at the precision of portable (fp16, or `(fp32)` where fp16 is unsupported or not finite); original fp32 = its default fp32 run. Peak memory is the torch allocator's.## Accuracy### On public datasetsFrames _10 -> _11 at full size against the flow_occ ground truth; EPE = mean of the per-pair mean end-point error, Fl-all = share of all valid pixels with an error > 3 px and > 5 % of the GT magnitude. The fixed-shape comparison pads the bottom and right with edge pixels to 384 x 1248. Metrics use predictions cropped to each original ground-truth grid. Original = the original code named under Details, same checkpoint and protocol.| variant | dataset | original fp32 | original fp16 | portable | portable fp32 | kernels | portable + torch.compile | TensorRT | note ||---|---|---|---|---|---|---|---|---|---|| `raft-large` | KITTI 2015 train, EPE / Fl-all % | 1.528 / 5.60 | 1.528 / 5.60 | 1.529 / 5.61 | 1.528 / 5.60 | 1.526 / 5.60 | | | trained on this dataset's public images; not a zero-shot result || `raft-large` | KITTI 2015 train (200 pairs), fixed 384 x 1248, EPE / Fl-all % | | | | 1.535 / 5.71 | | | 1.535 / 5.71 | trained on this dataset's public images; not a zero-shot result || `raft-large` | KITTI 2015 first 50 train pairs, 384 x 1248, EPE / Fl-all % | | | | 1.322 / 4.75 | | | 1.322 / 4.75 | trained on this dataset's public images; not a zero-shot result || `raft-large-things` | KITTI 2015 train, EPE / Fl-all % | 4.838 / 16.55 | 4.831 / 16.54 | 4.828 / 16.51 | 4.838 / 16.55 | 4.834 / 16.53 | | | || `raft-large-things` | KITTI 2015 train (200 pairs), fixed 384 x 1248, EPE / Fl-all % | | | | 5.952 / 17.59 | | | 5.949 / 17.59 | || `raft-large-kitti` | KITTI 2015 train, EPE / Fl-all % | 0.614 / 1.44 | 0.614 / 1.44 | 0.614 / 1.44 | 0.614 / 1.44 | 0.614 / 1.44 | | | trained on this dataset's public images; not a zero-shot result || `raft-large-kitti` | KITTI 2015 train (200 pairs), fixed 384 x 1248, EPE / Fl-all % | | | | 0.629 / 1.50 | | | 0.629 / 1.50 | trained on this dataset's public images; not a zero-shot result || `raft-large-kitti` | KITTI 2015 train (200 pairs) at 384 x 1248 FP16, EPE / Fl-all % | | | 0.629 / 1.50 | | | 0.629 / 1.50 | 0.629 / 1.50 | trained on this dataset's public images; not a zero-shot result || `raft-small` | KITTI 2015 train, EPE / Fl-all % | 7.854 / 25.91 | 7.838 / 25.92 | 7.846 / 25.92 | 7.854 / 25.91 | 7.834 / 25.92 | | | || `raft-small` | KITTI 2015 train (200 pairs), fixed 384 x 1248, EPE / Fl-all % | | | | 10.318 / 28.25 | | | 10.325 / 28.26 | || `raft-small` | KITTI 2015 first 50 train pairs, 384 x 1248, EPE / Fl-all % | | | | 6.001 / 22.39 | | | 5.985 / 22.37 | |Measured on portable: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks ac98cac8 / f2992269+uncommitted, 2026-11-09 to 2026-11-18; portable32: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 6f0a70e1 / ac98cac8, 2026-11-17 to 2026-11-18; kernels: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks f2992269+uncommitted, 2026-11-09; compile: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 23765f70, 2026-11-19; tensorrt: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks ac98cac8, 2026-11-18.### Parity with the original code16 unmodified lines`flow.load("raft-large", mode="kernels")` runs our CUDA kernels (`raft_flow`, `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.<!-- staged from fastforks 0d8c365f7 (2026-12-02) -->
README.md+32-31