- withoutBG Open Weights
- Open weights · commercially permissiveLicense: Apache-2.0
- U²-Net
- Open weights · commercially permissiveLicense: Apache-2.0
withoutBG Open-Weight Model vs u2net
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 | u2net |
|---|---|---|
| MGE (Edge Quality) | 0.04523 ✓ | 0.07984 |
| MAE (Overall Accuracy) | 0.02923 ✓ | 0.12826 |
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. The table splits the scores by route: the first group is what withoutBG's own matting model handled.
| Images | Metric | withoutBG Open-Weight Model | u2net |
|---|---|---|---|
| Routed to withoutBG matting (41) | MAE | 0.01846 ✓ | 0.11806 |
| MGE (edges) | 0.03773 ✓ | 0.06007 | |
| Routed to BiRefNet (17) | MAE | 0.01509 ✓ | 0.12224 |
| MGE (edges) | 0.04305 ✓ | 0.11194 |
Per-image averages, lower is better.



- MGE
- 0.03254✓
- MAE
- 0.00960✓
- MGE
- 0.05430
- MAE
- 0.04068



- MGE
- 0.06122✓
- MAE
- 0.02110✓
- MGE
- 0.10749
- MAE
- 0.23142
Photo by Alexander Dummer on Unsplash



- MGE
- 0.02084✓
- MAE
- 0.00601✓
- MGE
- 0.04758
- MAE
- 0.03201



- MGE
- 0.01262✓
- MAE
- 0.00461✓
- MGE
- 0.01890
- MAE
- 0.00949



- MGE
- 0.17462✓
- MAE
- 0.19712✓
- MGE
- 0.17759
- MAE
- 0.42832
Photo by Andreas Rasmussen on Unsplash



- MGE
- 0.07595✓
- MAE
- 0.02381✓
- MGE
- 0.09509
- MAE
- 0.08100



- MGE
- 0.03402✓
- MAE
- 0.02906✓
- MGE
- 0.03862
- MAE
- 0.22676



- MGE
- 0.04621✓
- MAE
- 0.01031✓
- MGE
- 0.06007
- MAE
- 0.03098



- MGE
- 0.01697✓
- MAE
- 0.00407✓
- MGE
- 0.03274
- MAE
- 0.01732



- MGE
- 0.01899✓
- MAE
- 0.00660✓
- MGE
- 0.04736
- MAE
- 0.01496



- MGE
- 0.04118✓
- MAE
- 0.01690✓
- MGE
- 0.06842
- MAE
- 0.04546



- MGE
- 0.04200✓
- MAE
- 0.01715✓
- MGE
- 0.08896
- MAE
- 0.68843



- MGE
- 0.05736✓
- MAE
- 0.08254✓
- MGE
- 0.07888
- MAE
- 0.73180
Photo by Camila Quintero Franco on Unsplash



- MGE
- 0.01469✓
- MAE
- 0.00695✓
- MGE
- 0.03513
- MAE
- 0.03698



- MGE
- 0.06638✓
- MAE
- 0.01242✓
- MGE
- 0.11366
- MAE
- 0.07027



- MGE
- 0.01093✓
- MAE
- 0.00177✓
- MGE
- 0.06189
- MAE
- 0.09543
Photo by Carlo Sierra on Unsplash



- MGE
- 0.02498✓
- MAE
- 0.00460✓
- MGE
- 0.04141
- MAE
- 0.14397



- MGE
- 0.03139✓
- MAE
- 0.00959✓
- MGE
- 0.04762
- MAE
- 0.02104



- MGE
- 0.02976✓
- MAE
- 0.00740✓
- MGE
- 0.05973
- MAE
- 0.10539
Photo by Conor Samuel on Unsplash



- MGE
- 0.07155✓
- MAE
- 0.01159✓
- MGE
- 0.42392
- MAE
- 0.30978



- MGE
- 0.03577✓
- MAE
- 0.00660✓
- MGE
- 0.06526
- MAE
- 0.02066



- MGE
- 0.01789✓
- MAE
- 0.00452✓
- MGE
- 0.02158
- MAE
- 0.00659



- MGE
- 0.03015✓
- MAE
- 0.01049✓
- MGE
- 0.03629
- MAE
- 0.03255



- MGE
- 0.05026✓
- MAE
- 0.01100✓
- MGE
- 0.09893
- MAE
- 0.09053



- MGE
- 0.01489✓
- MAE
- 0.00434✓
- MGE
- 0.04061
- MAE
- 0.02781



- MGE
- 0.01399✓
- MAE
- 0.00246✓
- MGE
- 0.05858
- MAE
- 0.02035
Photo by Lars Bo Nielsen on Unsplash



- MGE
- 0.05191✓
- MAE
- 0.01377✓
- MGE
- 0.09775
- MAE
- 0.11268
Photo by Mayer Tawfik on Unsplash



- MGE
- 0.01835✓
- MAE
- 0.00586✓
- MGE
- 0.03523
- MAE
- 0.02607



- MGE
- 0.01551✓
- MAE
- 0.00578✓
- MGE
- 0.02820
- MAE
- 0.02370



- MGE
- 0.02743✓
- MAE
- 0.00856✓
- MGE
- 0.04968
- MAE
- 0.03139
Photo by Niko Tsviliov on Unsplash



- MGE
- 0.14105✓
- MAE
- 0.05132✓
- MGE
- 0.26436
- MAE
- 0.22743
Photo by Norbert Braun on Unsplash



- MGE
- 0.01083✓
- MAE
- 0.00164✓
- MGE
- 0.05312
- MAE
- 0.08202



- MGE
- 0.05432✓
- MAE
- 0.02385✓
- MGE
- 0.07998
- MAE
- 0.29806



- MGE
- 0.03119✓
- MAE
- 0.02758✓
- MGE
- 0.05827
- MAE
- 0.10070



- MGE
- 0.02442✓
- MAE
- 0.01933✓
- MGE
- 0.04397
- MAE
- 0.05425



- MGE
- 0.02832✓
- MAE
- 0.01777✓
- MGE
- 0.04300
- MAE
- 0.07894



- MGE
- 0.37410
- MAE
- 0.49629✓
- MGE
- 0.36861✓
- MAE
- 0.49657



- MGE
- 0.02225✓
- MAE
- 0.00549✓
- MGE
- 0.06347
- MAE
- 0.03625



- MGE
- 0.01052✓
- MAE
- 0.00205✓
- MGE
- 0.02008
- MAE
- 0.01485



- MGE
- 0.02272✓
- MAE
- 0.00521✓
- MGE
- 0.03800
- MAE
- 0.01532



- MGE
- 0.03536✓
- MAE
- 0.00578✓
- MGE
- 0.06015
- MAE
- 0.14384



- MGE
- 0.02418✓
- MAE
- 0.02733✓
- MGE
- 0.03059
- MAE
- 0.04455



- MGE
- 0.02203✓
- MAE
- 0.00368✓
- MGE
- 0.03554
- MAE
- 0.00845



- MGE
- 0.01403✓
- MAE
- 0.00312✓
- MGE
- 0.02402
- MAE
- 0.00790



- MGE
- 0.02054✓
- MAE
- 0.00590✓
- MGE
- 0.03196
- MAE
- 0.02429



- MGE
- 0.00960✓
- MAE
- 0.00134✓
- MGE
- 0.07269
- MAE
- 0.05231



- MGE
- 0.02730✓
- MAE
- 0.00734✓
- MGE
- 0.04327
- MAE
- 0.02803



- MGE
- 0.02940✓
- MAE
- 0.01110✓
- MGE
- 0.06458
- MAE
- 0.10452



- MGE
- 0.18102✓
- MAE
- 0.03429✓
- MGE
- 0.41585
- MAE
- 0.46956



- MGE
- 0.07739
- MAE
- 0.09324
- MGE
- 0.07450✓
- MAE
- 0.05224✓



- MGE
- 0.13603✓
- MAE
- 0.02861✓
- MGE
- 0.16225
- MAE
- 0.11610



- MGE
- 0.02226✓
- MAE
- 0.00320✓
- MGE
- 0.08913
- MAE
- 0.03994



- MGE
- 0.03189✓
- MAE
- 0.00686✓
- MGE
- 0.10358
- MAE
- 0.04381



- MGE
- 0.01003✓
- MAE
- 0.01228✓
- MGE
- 0.01533
- MAE
- 0.03680
Photo by Vinicius Wiesehofer on Unsplash



- MGE
- 0.02822✓
- MAE
- 0.01994✓
- MGE
- 0.05919
- MAE
- 0.71899



- MGE
- 0.06085
- MAE
- 0.24387✓
- MGE
- 0.05586✓
- MAE
- 0.28043



- MGE
- 0.02557✓
- MAE
- 0.01326✓
- MGE
- 0.04125
- MAE
- 0.02597



- MGE
- 0.02353✓
- MAE
- 0.00573✓
- MGE
- 0.04612
- MAE
- 0.07316



- MGE
- 0.03757✓
- MAE
- 0.01221✓
- MGE
- 0.07274
- MAE
- 0.23800



- MGE
- 0.01677✓
- MAE
- 0.00759✓
- MGE
- 0.02746
- MAE
- 0.02864
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.128 for U²-Net (77% lower)); MGE (edge error) is lower for withoutBG Open Weights (0.045 vs 0.080 for U²-Net (43% lower)); band MAE (error near the matte edge) is lower for withoutBG Open Weights (0.067 vs 0.238 for U²-Net (72% lower)).
By category (MAE, categories with at least 5 images): People (12 images) withoutBG Open Weights 0.007, U²-Net 0.045; Objects with Details (7 images) withoutBG Open Weights 0.017, U²-Net 0.131; Plants (7 images) withoutBG Open Weights 0.015, U²-Net 0.129.
withoutBG Open Weights is open weights (Apache-2.0); U²-Net is open weights (Apache-2.0).
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 | U²-Net | |
|---|---|---|
| Access | Open weights | Open weights |
| License | Apache-2.0 | Apache-2.0 |
| Commercial use | Allowed | Allowed |
| Runs on | Your own machine (ONNX, input variable) | Your own machine (ONNX, input 320×320) |
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")U²-Net
Shell
pip install rembg
rembg i -m u2net input.jpg output.pngFAQ
- Which has the lower alpha error on Bench v0, withoutBG Open Weights or U²-Net?
- withoutBG Open Weights has the lower MAE (withoutBG Open Weights 0.029, U²-Net 0.128); MGE is lower for withoutBG Open Weights (0.045 vs 0.080 for U²-Net (43% lower)). Scores are per-image means over 60 photos; lower is better.
- What are the license differences between withoutBG Open Weights and U²-Net?
- withoutBG Open Weights is open weights (Apache-2.0); U²-Net is open weights (Apache-2.0). Commercial use: withoutBG Open Weights allowed, U²-Net 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.