Flor commited on
Commit
70dbd58
·
verified ·
1 Parent(s): b55475b

Model card synced with fastforks 7204e33f

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -59,6 +59,12 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `cfnet-sceneflow` 1988x2880 (8
59
  | --- | --- | --- | --- | --- | --- | --- |
60
  | `cfnet-sceneflow` | 0.39 (375x1242) | 0.94 | 0.21† | 0.24 (375x1242) | 0.48† | 0.40† |
61
 
 
 
 
 
 
 
62
  ### Fixed-size speed and peak memory, all models
63
 
64
  | model | mode | 640x480 | 1280x720 | 1920x1080 | 12 MP 4000x3000 |
@@ -66,6 +72,12 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `cfnet-sceneflow` 1988x2880 (8
66
  | `cfnet-sceneflow` | portable | 73.6 ms / 1070 / 1588 | 284.0 ms / 2640 / 4342 | 758.8 ms / 4508 / 5956 | OOM |
67
  | `cfnet-sceneflow` | kernels | 59.3 ms / 1118 / 1618 | 229.9 ms / 2778 / 4362 | 634.1 ms / 4801 / 5976 | OOM |
68
 
 
 
 
 
 
 
69
  Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
70
 
71
  Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the authors' code 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.
@@ -81,7 +93,7 @@ Every variant is checked against golden outputs of the original code at its pinn
81
  ```python
82
  from fastforks import stereo
83
 
84
- model = stereo.load("cfnet-sceneflow") # portable PyTorch on the GPU if there is one, else the CPU
85
  result = model("left.png", "right.png")
86
  result.disparity # [H, W] float32 tensor, input resolution
87
  result.backend # what ran, e.g. Backend(mode='portable', device='cuda:0', dtype='float16')
@@ -92,3 +104,5 @@ Install with `pip install fastforks` (see <https://github.com/kleinicke/fastfork
92
  ## Kernels backend
93
 
94
  `stereo.load("cfnet-sceneflow", 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.
 
 
 
59
  | --- | --- | --- | --- | --- | --- | --- |
60
  | `cfnet-sceneflow` | 0.39 (375x1242) | 0.94 | 0.21† | 0.24 (375x1242) | 0.48† | 0.40† |
61
 
62
+ ### torch.compile and TensorRT
63
+
64
+ | 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) |
65
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
66
+ | `cfnet-sceneflow` | 994x1482 | 484.31 | 249.2 | 53.0 | 170.9 | 139 | 400.67 | 3441 / 4376 | 1026 / 1398 | 1238 |
67
+
68
  ### Fixed-size speed and peak memory, all models
69
 
70
  | model | mode | 640x480 | 1280x720 | 1920x1080 | 12 MP 4000x3000 |
 
72
  | `cfnet-sceneflow` | portable | 73.6 ms / 1070 / 1588 | 284.0 ms / 2640 / 4342 | 758.8 ms / 4508 / 5956 | OOM |
73
  | `cfnet-sceneflow` | kernels | 59.3 ms / 1118 / 1618 | 229.9 ms / 2778 / 4362 | 634.1 ms / 4801 / 5976 | OOM |
74
 
75
+ ### Apple silicon (MPS)
76
+
77
+ | model | `portable` | `kernels` | speed-up |
78
+ | --- | --- | --- | --- |
79
+ | `cfnet-sceneflow` | 2228 ms / 5463 MiB (float16) | 758 ms / 2931 MiB | 2.94x |
80
+
81
  Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
82
 
83
  Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the authors' code 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.
 
93
  ```python
94
  from fastforks import stereo
95
 
96
+ model = stereo.load("cfnet-sceneflow") # mode="auto": the preferred backend from recorded measurements
97
  result = model("left.png", "right.png")
98
  result.disparity # [H, W] float32 tensor, input resolution
99
  result.backend # what ran, e.g. Backend(mode='portable', device='cuda:0', dtype='float16')
 
104
  ## Kernels backend
105
 
106
  `stereo.load("cfnet-sceneflow", 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.
107
+
108
+ <!-- staged from fastforks 7204e33f (2026-11-05) -->