Views
No views yet
| File | Precision | Size | WASM (CPU) | WebGL (GPU) |
|---|---|---|---|---|
onnx/crispcut-fast.onnx | INT8 quantized | 6.5 MB | ~5–10 s | ~1–2 s |
onnx/crispcut-quality.onnx | FP32 | 25.3 MB | ~15–25 s | ~3–6 s |
[0.485, 0.456, 0.406], std: [0.229, 0.224, 0.225])input — shape [1, 3, 1024, 1024] (NCHW, float32)output — shape [1, 1, 1024, 1024] (logits → apply sigmoid)| Teacher (BiRefNet) | Student (CrispCut) | |
|---|---|---|
| Parameters | 220 M | 6.6 M |
| Compression | — | 33× smaller |
| Quality | 100 % | ~95 % |
npm i @crispcut/background-removal1import { cut } from '@crispcut/background-removal';
2
3// Fast mode (default) — downloads crispcut-fast.onnx from this repo
4const result = await cut(image);
5img.src = result.url;
6
7// Quality mode with GPU
8const result = await cut(image, { model: 'quality', gpu: true });.onnx files from the onnx/ folder and serve them from your own CDN:cut(image, { modelUrl: '/models/crispcut-fast.onnx' });