- withoutBG Open Weights
- Open weights · commercially permissiveLicense: Apache-2.0
- BiRefNet (legacy)
- Open weights · commercially permissiveLicense: MIT
withoutBG Open-Weight Model vs BiRefNet
Quantitative comparison: 60 images scored against ground-truth mattes. Lower is better. Use the view controls on each row to switch between transparency, chroma key, and alpha matte on all outputs.
| Metric | withoutBG Open-Weight Model | BiRefNet |
|---|---|---|
| MGE (Edge Quality) | 0.04523 ✓ | 0.05439 |
| MAE (Overall Accuracy) | 0.02923 ✓ | 0.04392 |
Disclosure: withoutBG includes BiRefNet
withoutBG Open Weights and Pro Model API are routed pipelines. A classifier sends fine strands, soft detail and transparency to withoutBG's own matting model, and hard opaque objects, flat scenes and vehicles to BiRefNet (MIT license), which is part of the pipeline. On this page, 17 of 58 images went to BiRefNet, so on those images this page partly compares BiRefNet with BiRefNet. The table splits the scores by route: the first group is what withoutBG's own matting model handled.
| Images | Metric | withoutBG Open-Weight Model | BiRefNet |
|---|---|---|---|
| Routed to withoutBG matting (41) | MAE | 0.01846 ✓ | 0.04927 |
| MGE (edges) | 0.03773 ✓ | 0.04639 | |
| Routed to BiRefNet (17) | MAE | 0.01509 ✓ | 0.01713 |
| MGE (edges) | 0.04305 ✓ | 0.06130 |
Per-image averages, lower is better.



- MGE
- 0.03254✓
- MAE
- 0.00960✓
- MGE
- 0.03996
- MAE
- 0.01296



- MGE
- 0.06122✓
- MAE
- 0.02110✓
- MGE
- 0.11020
- MAE
- 0.27073
Photo by Alexander Dummer on Unsplash



- MGE
- 0.02084✓
- MAE
- 0.00601✓
- MGE
- 0.03696
- MAE
- 0.02102



- MGE
- 0.01262✓
- MAE
- 0.00461✓
- MGE
- 0.01621
- MAE
- 0.00695



- MGE
- 0.17462
- MAE
- 0.19712
- MGE
- 0.17260✓
- MAE
- 0.18695✓
Photo by Andreas Rasmussen on Unsplash



- MGE
- 0.07595
- MAE
- 0.02381
- MGE
- 0.05877✓
- MAE
- 0.01414✓



- MGE
- 0.03402
- MAE
- 0.02906
- MGE
- 0.03386✓
- MAE
- 0.01461✓



- MGE
- 0.04621
- MAE
- 0.01031
- MGE
- 0.04328✓
- MAE
- 0.00915✓



- MGE
- 0.01697
- MAE
- 0.00407✓
- MGE
- 0.01526✓
- MAE
- 0.00650



- MGE
- 0.01899✓
- MAE
- 0.00660✓
- MGE
- 0.02690
- MAE
- 0.01027



- MGE
- 0.04118✓
- MAE
- 0.01690✓
- MGE
- 0.05031
- MAE
- 0.02854



- MGE
- 0.04200✓
- MAE
- 0.01715✓
- MGE
- 0.08621
- MAE
- 0.53344



- MGE
- 0.05736✓
- MAE
- 0.08254✓
- MGE
- 0.06545
- MAE
- 0.15631
Photo by Camila Quintero Franco on Unsplash



- MGE
- 0.01469✓
- MAE
- 0.00695✓
- MGE
- 0.01813
- MAE
- 0.00906



- MGE
- 0.06638✓
- MAE
- 0.01242✓
- MGE
- 0.08637
- MAE
- 0.01790



- MGE
- 0.01093✓
- MAE
- 0.00177✓
- MGE
- 0.02447
- MAE
- 0.00576
Photo by Carlo Sierra on Unsplash



- MGE
- 0.02498
- MAE
- 0.00460✓
- MGE
- 0.02200✓
- MAE
- 0.00538



- MGE
- 0.03139
- MAE
- 0.00959
- MGE
- 0.02919✓
- MAE
- 0.00875✓



- MGE
- 0.02976✓
- MAE
- 0.00740✓
- MGE
- 0.04439
- MAE
- 0.04605
Photo by Conor Samuel on Unsplash



- MGE
- 0.07155✓
- MAE
- 0.01159✓
- MGE
- 0.10993
- MAE
- 0.01821



- MGE
- 0.03577
- MAE
- 0.00660✓
- MGE
- 0.03499✓
- MAE
- 0.00842



- MGE
- 0.01789
- MAE
- 0.00452
- MGE
- 0.01306✓
- MAE
- 0.00403✓



- MGE
- 0.03015
- MAE
- 0.01049
- MGE
- 0.02752✓
- MAE
- 0.00920✓



- MGE
- 0.05026✓
- MAE
- 0.01100✓
- MGE
- 0.07125
- MAE
- 0.01975



- MGE
- 0.01489✓
- MAE
- 0.00434✓
- MGE
- 0.03640
- MAE
- 0.02149



- MGE
- 0.01399✓
- MAE
- 0.00246✓
- MGE
- 0.02955
- MAE
- 0.00730
Photo by Lars Bo Nielsen on Unsplash



- MGE
- 0.05191✓
- MAE
- 0.01377✓
- MGE
- 0.07968
- MAE
- 0.09298
Photo by Mayer Tawfik on Unsplash



- MGE
- 0.01835
- MAE
- 0.00586✓
- MGE
- 0.01741✓
- MAE
- 0.00712



- MGE
- 0.01551✓
- MAE
- 0.00578✓
- MGE
- 0.01835
- MAE
- 0.01075



- MGE
- 0.02743✓
- MAE
- 0.00856✓
- MGE
- 0.03411
- MAE
- 0.01113
Photo by Niko Tsviliov on Unsplash



- MGE
- 0.14105✓
- MAE
- 0.05132✓
- MGE
- 0.23079
- MAE
- 0.13784
Photo by Norbert Braun on Unsplash



- MGE
- 0.01083
- MAE
- 0.00164✓
- MGE
- 0.01057✓
- MAE
- 0.00193



- MGE
- 0.05432✓
- MAE
- 0.02385✓
- MGE
- 0.06849
- MAE
- 0.04935



- MGE
- 0.03119✓
- MAE
- 0.02758✓
- MGE
- 0.05601
- MAE
- 0.08289



- MGE
- 0.02442✓
- MAE
- 0.01933✓
- MGE
- 0.03090
- MAE
- 0.02441



- MGE
- 0.02832
- MAE
- 0.01777
- MGE
- 0.02034✓
- MAE
- 0.00491✓



- MGE
- 0.37410
- MAE
- 0.49629
- MGE
- 0.27682✓
- MAE
- 0.11614✓



- MGE
- 0.02225✓
- MAE
- 0.00549✓
- MGE
- 0.03319
- MAE
- 0.00839



- MGE
- 0.01052
- MAE
- 0.00205✓
- MGE
- 0.00788✓
- MAE
- 0.00273



- MGE
- 0.02272
- MAE
- 0.00521✓
- MGE
- 0.02176✓
- MAE
- 0.00757



- MGE
- 0.03536✓
- MAE
- 0.00578✓
- MGE
- 0.04765
- MAE
- 0.00985



- MGE
- 0.02418
- MAE
- 0.02733
- MGE
- 0.02044✓
- MAE
- 0.02612✓



- MGE
- 0.02203
- MAE
- 0.00368
- MGE
- 0.01632✓
- MAE
- 0.00358✓



- MGE
- 0.01403
- MAE
- 0.00312✓
- MGE
- 0.01295✓
- MAE
- 0.00364



- MGE
- 0.02054
- MAE
- 0.00590✓
- MGE
- 0.01990✓
- MAE
- 0.00769



- MGE
- 0.00960✓
- MAE
- 0.00134✓
- MGE
- 0.02651
- MAE
- 0.00388



- MGE
- 0.02730✓
- MAE
- 0.00734✓
- MGE
- 0.03346
- MAE
- 0.01240



- MGE
- 0.02940✓
- MAE
- 0.01110✓
- MGE
- 0.09516
- MAE
- 0.07349



- MGE
- 0.18102✓
- MAE
- 0.03429✓
- MGE
- 0.26035
- MAE
- 0.05151



- MGE
- 0.07739
- MAE
- 0.09324
- MGE
- 0.05733✓
- MAE
- 0.02197✓



- MGE
- 0.13603
- MAE
- 0.02861
- MGE
- 0.12911✓
- MAE
- 0.02761✓



- MGE
- 0.02226✓
- MAE
- 0.00320✓
- MGE
- 0.04808
- MAE
- 0.00738



- MGE
- 0.03189✓
- MAE
- 0.00686✓
- MGE
- 0.07057
- MAE
- 0.02215



- MGE
- 0.01003✓
- MAE
- 0.01228
- MGE
- 0.01005
- MAE
- 0.01155✓
Photo by Vinicius Wiesehofer on Unsplash



- MGE
- 0.02822✓
- MAE
- 0.01994✓
- MGE
- 0.04382
- MAE
- 0.06674



- MGE
- 0.06085
- MAE
- 0.24387
- MGE
- 0.04272✓
- MAE
- 0.20781✓



- MGE
- 0.02557✓
- MAE
- 0.01326✓
- MGE
- 0.03072
- MAE
- 0.02918



- MGE
- 0.02353✓
- MAE
- 0.00573✓
- MGE
- 0.02467
- MAE
- 0.00789



- MGE
- 0.03757✓
- MAE
- 0.01221✓
- MGE
- 0.04609
- MAE
- 0.02077



- MGE
- 0.01677✓
- MAE
- 0.00759✓
- MGE
- 0.01815
- MAE
- 0.00888
What the scores say
On Bench v0 (60 real photos scored against ground-truth alpha mattes at a 1024 px shorter side, lower is better), MAE is lower for withoutBG Open Weights (0.029 vs 0.044 for BiRefNet (legacy) (33% lower)); MGE (edge error) is lower for withoutBG Open Weights (0.045 vs 0.054 for BiRefNet (legacy) (17% lower)); band MAE (error near the matte edge) is lower for withoutBG Open Weights (0.067 vs 0.098 for BiRefNet (legacy) (31% lower)).
By category (MAE, categories with at least 5 images): People (12 images) withoutBG Open Weights 0.007, BiRefNet (legacy) 0.010; Objects with Details (7 images) withoutBG Open Weights 0.017, BiRefNet (legacy) 0.020; Plants (7 images) withoutBG Open Weights 0.015, BiRefNet (legacy) 0.016.
withoutBG Open Weights is open weights (Apache-2.0); BiRefNet (legacy) is open weights (MIT).
withoutBG models route each image to a matting model or to BiRefNet; see the router disclosure above for the split. The overall means include images with no recorded route (2 of 60 for withoutBG Open Weights), so they are not the average of the per-route means.
Specs
| withoutBG Open Weights | BiRefNet (legacy) | |
|---|---|---|
| Access | Open weights | Open weights |
| License | Apache-2.0 | MIT |
| Commercial use | Allowed | Allowed |
| Runs on | Your own machine (ONNX, input variable) | Your own machine |
How to run each
withoutBG Open Weights
Python
pip install withoutbg
from withoutbg import WithoutBG
model = WithoutBG.open_weights()
model.remove_background("input.jpg").save("output.png")BiRefNet (legacy)
Hosted service: see the vendor's own documentation.
FAQ
- Which has the lower alpha error on Bench v0, withoutBG Open Weights or BiRefNet (legacy)?
- withoutBG Open Weights has the lower MAE (withoutBG Open Weights 0.029, BiRefNet (legacy) 0.044); MGE is lower for withoutBG Open Weights (0.045 vs 0.054 for BiRefNet (legacy) (17% lower)). Scores are per-image means over 60 photos; lower is better.
- What are the license differences between withoutBG Open Weights and BiRefNet (legacy)?
- withoutBG Open Weights is open weights (Apache-2.0); BiRefNet (legacy) is open weights (MIT). Commercial use: withoutBG Open Weights allowed, BiRefNet (legacy) allowed.
- How is the comparison scored?
- Both models run on the same 60 photos. Predictions and ground-truth mattes are scored at a 1024 px shorter side, never upscaled, with MAE (overall), MGE (Sobel gradient error, edges) and band MAE (a 10 px band around the edge). Per-image scores are published under CC BY 4.0.
Methodology
- Alpha mattes are grayscale masks encoding per-pixel foreground probability. They capture fine edge detail (hair, fur, semi-transparent regions) that binary masks discard.
- Metrics are computed by comparing predicted mattes against a ground-truth reference: MGE measures edge sharpness and MAE measures pixel-level accuracy. Both are lower-is-better.
- Scored images come from Bench v0, where every image has a ground-truth matte. The benchmark page has the full methodology and per-image scores for every model (CSV / JSON).
Photo Credits
Source images are courtesy of the photographers below via Unsplash.
BiRefNet run (published results)
- Code: ZhengPeng7/BiRefNet (model code loaded through Hugging Face transformers)
- Weights: ZhengPeng7/BiRefNet_dynamic via Hugging Face
- Hardware: Apple Silicon, PyTorch MPS (CPU fallback for deform_conv2d)
- Date: 2026-10-20
Inference settings
- Input size: 1024 px on the long side (aspect kept, sides rounded to a multiple of 32), then mask resized back to original resolution
- Normalization: ImageNet mean/std
- Precision: FP32 (hub weights cast from FP16)