- withoutBG Open Weights
- Open weights · commercially permissiveLicense: Apache-2.0
- BiRefNet Portrait
- Open weights · commercially permissiveLicense: MIT
withoutBG Open-Weight Model vs birefnet-portrait
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-portrait |
|---|---|---|
| MGE (Edge Quality) | 0.04523 ✓ | 0.06467 |
| MAE (Overall Accuracy) | 0.02923 ✓ | 0.07141 |
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-portrait |
|---|---|---|---|
| Routed to withoutBG matting (41) | MAE | 0.01846 ✓ | 0.04067 |
| MGE (edges) | 0.03773 ✓ | 0.04684 | |
| Routed to BiRefNet (17) | MAE | 0.01509 ✓ | 0.11050 |
| MGE (edges) | 0.04305 ✓ | 0.09146 |
Per-image averages, lower is better.



- MGE
- 0.03254✓
- MAE
- 0.00960✓
- MGE
- 0.04134
- MAE
- 0.01952



- MGE
- 0.06122✓
- MAE
- 0.02110✓
- MGE
- 0.11208
- MAE
- 0.12959
Photo by Alexander Dummer on Unsplash



- MGE
- 0.02084✓
- MAE
- 0.00601✓
- MGE
- 0.03608
- MAE
- 0.01979



- MGE
- 0.01262✓
- MAE
- 0.00461✓
- MGE
- 0.01557
- MAE
- 0.00741



- MGE
- 0.17462✓
- MAE
- 0.19712✓
- MGE
- 0.18634
- MAE
- 0.23327
Photo by Andreas Rasmussen on Unsplash



- MGE
- 0.07595✓
- MAE
- 0.02381✓
- MGE
- 0.08386
- MAE
- 0.09753



- MGE
- 0.03402✓
- MAE
- 0.02906✓
- MGE
- 0.03811
- MAE
- 0.22692



- MGE
- 0.04621
- MAE
- 0.01031
- MGE
- 0.04008✓
- MAE
- 0.00974✓



- MGE
- 0.01697
- MAE
- 0.00407✓
- MGE
- 0.01560✓
- MAE
- 0.00698



- MGE
- 0.01899✓
- MAE
- 0.00660✓
- MGE
- 0.04045
- MAE
- 0.02887



- MGE
- 0.04118✓
- MAE
- 0.01690✓
- MGE
- 0.05656
- MAE
- 0.03090



- MGE
- 0.04200✓
- MAE
- 0.01715✓
- MGE
- 0.07841
- MAE
- 0.13144



- MGE
- 0.05736✓
- MAE
- 0.08254✓
- MGE
- 0.07187
- MAE
- 0.14147
Photo by Camila Quintero Franco on Unsplash



- MGE
- 0.01469✓
- MAE
- 0.00695✓
- MGE
- 0.02176
- MAE
- 0.01088



- MGE
- 0.06638✓
- MAE
- 0.01242✓
- MGE
- 0.10133
- MAE
- 0.10167



- MGE
- 0.01093✓
- MAE
- 0.00177✓
- MGE
- 0.02860
- MAE
- 0.00758
Photo by Carlo Sierra on Unsplash



- MGE
- 0.02498
- MAE
- 0.00460
- MGE
- 0.02262✓
- MAE
- 0.00455✓



- MGE
- 0.03139
- MAE
- 0.00959✓
- MGE
- 0.03076✓
- MAE
- 0.00979



- MGE
- 0.02976✓
- MAE
- 0.00740✓
- MGE
- 0.04187
- MAE
- 0.03553
Photo by Conor Samuel on Unsplash



- MGE
- 0.07155✓
- MAE
- 0.01159✓
- MGE
- 0.32352
- MAE
- 0.44287



- MGE
- 0.03577✓
- MAE
- 0.00660✓
- MGE
- 0.04891
- MAE
- 0.01535



- MGE
- 0.01789
- MAE
- 0.00452
- MGE
- 0.01050✓
- MAE
- 0.00324✓



- MGE
- 0.03015✓
- MAE
- 0.01049✓
- MGE
- 0.03766
- MAE
- 0.02335



- MGE
- 0.05026✓
- MAE
- 0.01100✓
- MGE
- 0.09709
- MAE
- 0.04888



- MGE
- 0.01489✓
- MAE
- 0.00434✓
- MGE
- 0.02386
- MAE
- 0.01107



- MGE
- 0.01399✓
- MAE
- 0.00246✓
- MGE
- 0.03122
- MAE
- 0.00946
Photo by Lars Bo Nielsen on Unsplash



- MGE
- 0.05191✓
- MAE
- 0.01377✓
- MGE
- 0.07340
- MAE
- 0.06805
Photo by Mayer Tawfik on Unsplash



- MGE
- 0.01835✓
- MAE
- 0.00586✓
- MGE
- 0.01919
- MAE
- 0.00875



- MGE
- 0.01551✓
- MAE
- 0.00578✓
- MGE
- 0.02099
- MAE
- 0.01246



- MGE
- 0.02743✓
- MAE
- 0.00856✓
- MGE
- 0.03219
- MAE
- 0.01239
Photo by Niko Tsviliov on Unsplash



- MGE
- 0.14105✓
- MAE
- 0.05132✓
- MGE
- 0.22425
- MAE
- 0.15672
Photo by Norbert Braun on Unsplash



- MGE
- 0.01083✓
- MAE
- 0.00164✓
- MGE
- 0.03737
- MAE
- 0.02332



- MGE
- 0.05432✓
- MAE
- 0.02385✓
- MGE
- 0.07146
- MAE
- 0.22746



- MGE
- 0.03119✓
- MAE
- 0.02758✓
- MGE
- 0.05437
- MAE
- 0.11442



- MGE
- 0.02442✓
- MAE
- 0.01933✓
- MGE
- 0.03170
- MAE
- 0.03309



- MGE
- 0.02832
- MAE
- 0.01777
- MGE
- 0.02543✓
- MAE
- 0.00925✓



- MGE
- 0.37410
- MAE
- 0.49629
- MGE
- 0.36593✓
- MAE
- 0.41233✓



- MGE
- 0.02225✓
- MAE
- 0.00549✓
- MGE
- 0.05887
- MAE
- 0.32245



- MGE
- 0.01052
- MAE
- 0.00205✓
- MGE
- 0.00747✓
- MAE
- 0.00291



- MGE
- 0.02272
- MAE
- 0.00521✓
- MGE
- 0.02263✓
- MAE
- 0.00842



- MGE
- 0.03536✓
- MAE
- 0.00578✓
- MGE
- 0.05296
- MAE
- 0.02716



- MGE
- 0.02418
- MAE
- 0.02733
- MGE
- 0.02091✓
- MAE
- 0.02130✓



- MGE
- 0.02203
- MAE
- 0.00368
- MGE
- 0.01334✓
- MAE
- 0.00231✓



- MGE
- 0.01403
- MAE
- 0.00312✓
- MGE
- 0.01116✓
- MAE
- 0.00319



- MGE
- 0.02054✓
- MAE
- 0.00590✓
- MGE
- 0.02111
- MAE
- 0.00942



- MGE
- 0.00960✓
- MAE
- 0.00134✓
- MGE
- 0.01948
- MAE
- 0.00300



- MGE
- 0.02730✓
- MAE
- 0.00734✓
- MGE
- 0.02939
- MAE
- 0.01078



- MGE
- 0.02940✓
- MAE
- 0.01110✓
- MGE
- 0.03867
- MAE
- 0.02312



- MGE
- 0.18102✓
- MAE
- 0.03429✓
- MGE
- 0.38865
- MAE
- 0.10853



- MGE
- 0.07739✓
- MAE
- 0.09324✓
- MGE
- 0.08326
- MAE
- 0.22116



- MGE
- 0.13603✓
- MAE
- 0.02861✓
- MGE
- 0.15441
- MAE
- 0.10118



- MGE
- 0.02226✓
- MAE
- 0.00320✓
- MGE
- 0.08130
- MAE
- 0.03866



- MGE
- 0.03189✓
- MAE
- 0.00686✓
- MGE
- 0.06508
- MAE
- 0.02079



- MGE
- 0.01003
- MAE
- 0.01228
- MGE
- 0.01001✓
- MAE
- 0.01205✓
Photo by Vinicius Wiesehofer on Unsplash



- MGE
- 0.02822✓
- MAE
- 0.01994✓
- MGE
- 0.04156
- MAE
- 0.06607



- MGE
- 0.06085
- MAE
- 0.24387✓
- MGE
- 0.03899✓
- MAE
- 0.32606



- MGE
- 0.02557
- MAE
- 0.01326✓
- MGE
- 0.02494✓
- MAE
- 0.02050



- MGE
- 0.02353✓
- MAE
- 0.00573✓
- MGE
- 0.03066
- MAE
- 0.01006



- MGE
- 0.03757✓
- MAE
- 0.01221✓
- MGE
- 0.05210
- MAE
- 0.02417



- MGE
- 0.01677✓
- MAE
- 0.00759✓
- MGE
- 0.02091
- MAE
- 0.01539
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.071 for BiRefNet Portrait (59% lower)); MGE (edge error) is lower for withoutBG Open Weights (0.045 vs 0.065 for BiRefNet Portrait (30% lower)); band MAE (error near the matte edge) is lower for withoutBG Open Weights (0.067 vs 0.146 for BiRefNet Portrait (54% lower)).
By category (MAE, categories with at least 5 images): People (12 images) withoutBG Open Weights 0.007, BiRefNet Portrait 0.012; Objects with Details (7 images) withoutBG Open Weights 0.017, BiRefNet Portrait 0.069; Plants (7 images) withoutBG Open Weights 0.015, BiRefNet Portrait 0.079.
withoutBG Open Weights is open weights (Apache-2.0); BiRefNet Portrait 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 Portrait | |
|---|---|---|
| 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 (ONNX, input 1024×1024) |
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 Portrait
Shell
pip install rembg
rembg i -m birefnet-portrait input.jpg output.pngFAQ
- Which has the lower alpha error on Bench v0, withoutBG Open Weights or BiRefNet Portrait?
- withoutBG Open Weights has the lower MAE (withoutBG Open Weights 0.029, BiRefNet Portrait 0.071); MGE is lower for withoutBG Open Weights (0.045 vs 0.065 for BiRefNet Portrait (30% lower)). Scores are per-image means over 60 photos; lower is better.
- What are the license differences between withoutBG Open Weights and BiRefNet Portrait?
- withoutBG Open Weights is open weights (Apache-2.0); BiRefNet Portrait is open weights (MIT). Commercial use: withoutBG Open Weights allowed, BiRefNet Portrait 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.