Update model card for 0.4.0
Browse files51 unmodified lines525354555657583 unmodified lines6263646566676869705 unmodified lines7677787980818283848518 unmodified lines10410510610751 unmodified lines| model | time (ms): original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- | --- | --- || `ben2` | 201 | 110 | 104 | 1.9x | 1.1x | 2466 / 2772 | 1681 / 1956 | 1430 / 1698 |### Startup and first call3 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) || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `ben2` | 1080x1920 | 110 ms | 103 ms | 58.2 ms | 104 ms | 70.8 s | 140 s | 1681 / 1956 | 813 / 916 | 1430 / 1698 | 1280 / 1326 |Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).5 unmodified linesEach image at its own size against its binary mask: MAE of the alpha, max F-beta (beta^2 = 0.3) over 256 thresholds (BiRefNet's evaluation). Original = the original code named under Details, same checkpoint and protocol.| variant | dataset | original fp32 | original fp16 | portable | kernels | note ||---|---|---|---|---|---|---|| `ben2` | DIS5K validation (DIS-VD), all 470 images, MAE / max F-beta | | | | 0.0403 / 0.9000 | || `ben2` | DIS5K validation (DIS-VD), every 2nd image (235), MAE / max F-beta | 0.0421 / 0.8919 | 0.0421 / 0.8919 | 0.0421 / 0.8919 | 0.0421 / 0.8919 | |Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks a49aaba7, 2026-11-12.18 unmodified lines`matting.load("ben2", mode="kernels")` runs our CUDA kernels (`cudnn_hacc`, `igev`, `cutlass_conv`). 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) -->51 unmodified lines525354555657583 unmodified lines6263646566676869705 unmodified lines7677787980818283848518 unmodified lines10410510610751 unmodified lines| model | time (ms): original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- | --- | --- || `ben2` | 201 | 115 | 105 | 1.9x | 1.1x | 2466 / 2772 | 1296 / 1376 | 1046 / 1118 |### Startup and first call3 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) || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `ben2` | 1080x1920 | 115 ms | 103 ms | 58.2 ms | 105 ms | 70.8 s | 140 s | 1296 / 1376 | 813 / 916 | 1046 / 1118 | 1280 / 1326 |Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).5 unmodified linesEach image at its own size against its binary mask: MAE of the alpha, max F-beta (beta^2 = 0.3) over 256 thresholds (BiRefNet's evaluation). Original = the original code named under Details, same checkpoint and protocol.| variant | dataset | original fp32 | original fp16 | portable | portable fp32 | kernels | note ||---|---|---|---|---|---|---|---|| `ben2` | DIS5K validation (DIS-VD), all 470 images, MAE / max F-beta | | | | | 0.0403 / 0.9000 | || `ben2` | DIS5K validation (DIS-VD), every 2nd image (235), MAE / max F-beta | 0.0421 / 0.8919 | 0.0421 / 0.8919 | 0.0421 / 0.8919 | 0.0421 / 0.8919 | 0.0421 / 0.8919 | |Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks a49aaba7, 2026-11-12.18 unmodified lines`matting.load("ben2", mode="kernels")` runs our CUDA kernels (`cudnn_hacc`, `igev`, `cutlass_conv`). 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+8-8