- withoutBG Open Weights
- Open weights · commercially permissiveLicense: Apache-2.0
- BiRefNet HRSOD
- Open weights · commercially permissiveLicense: MIT
withoutBG Open-Weight Model vs birefnet-hrsod
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-hrsod |
|---|---|---|
| MGE (Edge Quality) | 0.04523 ✓ | 0.07138 |
| MAE (Overall Accuracy) | 0.02923 ✓ | 0.10692 |
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-hrsod |
|---|---|---|---|
| Routed to withoutBG matting (41) | MAE | 0.01846 ✓ | 0.04954 |
| MGE (edges) | 0.03773 ✓ | 0.05145 | |
| Routed to BiRefNet (17) | MAE | 0.01509 ✓ | 0.21792 |
| MGE (edges) | 0.04305 ✓ | 0.10417 |
Per-image averages, lower is better.



- MGE
- 0.03254✓
- MAE
- 0.00960✓
- MGE
- 0.04937
- MAE
- 0.03044



- MGE
- 0.06122✓
- MAE
- 0.02110✓
- MGE
- 0.10010
- MAE
- 0.06858
Photo by Alexander Dummer on Unsplash



- MGE
- 0.02084✓
- MAE
- 0.00601✓
- MGE
- 0.04065
- MAE
- 0.02237



- MGE
- 0.01262✓
- MAE
- 0.00461✓
- MGE
- 0.01652
- MAE
- 0.00695



- MGE
- 0.17462✓
- MAE
- 0.19712✓
- MGE
- 0.18179
- MAE
- 0.29729
Photo by Andreas Rasmussen on Unsplash



- MGE
- 0.07595✓
- MAE
- 0.02381✓
- MGE
- 0.07758
- MAE
- 0.03906



- MGE
- 0.03402✓
- MAE
- 0.02906✓
- MGE
- 0.04882
- MAE
- 0.09456



- MGE
- 0.04621
- MAE
- 0.01031✓
- MGE
- 0.04549✓
- MAE
- 0.01077



- MGE
- 0.01697✓
- MAE
- 0.00407✓
- MGE
- 0.02432
- MAE
- 0.01259



- MGE
- 0.01899✓
- MAE
- 0.00660✓
- MGE
- 0.02960
- MAE
- 0.01206



- MGE
- 0.04118✓
- MAE
- 0.01690✓
- MGE
- 0.05418
- MAE
- 0.02499



- MGE
- 0.04200✓
- MAE
- 0.01715✓
- MGE
- 0.08044
- MAE
- 0.16338



- MGE
- 0.05736✓
- MAE
- 0.08254✓
- MGE
- 0.07129
- MAE
- 0.19791
Photo by Camila Quintero Franco on Unsplash



- MGE
- 0.01469✓
- MAE
- 0.00695✓
- MGE
- 0.02189
- MAE
- 0.00934



- MGE
- 0.06638✓
- MAE
- 0.01242✓
- MGE
- 0.08612
- MAE
- 0.01928



- MGE
- 0.01093✓
- MAE
- 0.00177✓
- MGE
- 0.03076
- MAE
- 0.00841
Photo by Carlo Sierra on Unsplash



- MGE
- 0.02498
- MAE
- 0.00460✓
- MGE
- 0.02243✓
- MAE
- 0.00553



- MGE
- 0.03139✓
- MAE
- 0.00959✓
- MGE
- 0.04122
- MAE
- 0.01428



- MGE
- 0.02976✓
- MAE
- 0.00740✓
- MGE
- 0.04123
- MAE
- 0.03421
Photo by Conor Samuel on Unsplash



- MGE
- 0.07155✓
- MAE
- 0.01159✓
- MGE
- 0.48545
- MAE
- 0.61007



- MGE
- 0.03577✓
- MAE
- 0.00660✓
- MGE
- 0.04456
- MAE
- 0.01154



- MGE
- 0.01789
- MAE
- 0.00452✓
- MGE
- 0.01640✓
- MAE
- 0.00473



- MGE
- 0.03015✓
- MAE
- 0.01049
- MGE
- 0.03085
- MAE
- 0.01043✓



- MGE
- 0.05026✓
- MAE
- 0.01100✓
- MGE
- 0.09147
- MAE
- 0.05514



- MGE
- 0.01489✓
- MAE
- 0.00434✓
- MGE
- 0.04398
- MAE
- 0.02804



- MGE
- 0.01399✓
- MAE
- 0.00246✓
- MGE
- 0.03426
- MAE
- 0.00896
Photo by Lars Bo Nielsen on Unsplash



- MGE
- 0.05191✓
- MAE
- 0.01377✓
- MGE
- 0.08477
- MAE
- 0.09860
Photo by Mayer Tawfik on Unsplash



- MGE
- 0.01835✓
- MAE
- 0.00586✓
- MGE
- 0.02829
- MAE
- 0.01542



- MGE
- 0.01551✓
- MAE
- 0.00578✓
- MGE
- 0.02339
- MAE
- 0.01436



- MGE
- 0.02743✓
- MAE
- 0.00856✓
- MGE
- 0.03976
- MAE
- 0.01595
Photo by Niko Tsviliov on Unsplash



- MGE
- 0.14105✓
- MAE
- 0.05132✓
- MGE
- 0.23697
- MAE
- 0.13760
Photo by Norbert Braun on Unsplash



- MGE
- 0.01083✓
- MAE
- 0.00164✓
- MGE
- 0.06342
- MAE
- 0.89895



- MGE
- 0.05432✓
- MAE
- 0.02385✓
- MGE
- 0.07925
- MAE
- 0.12626



- MGE
- 0.03119✓
- MAE
- 0.02758✓
- MGE
- 0.05812
- MAE
- 0.09891



- MGE
- 0.02442✓
- MAE
- 0.01933✓
- MGE
- 0.05506
- MAE
- 0.06566



- MGE
- 0.02832
- MAE
- 0.01777
- MGE
- 0.02176✓
- MAE
- 0.00588✓



- MGE
- 0.37410
- MAE
- 0.49629
- MGE
- 0.35515✓
- MAE
- 0.46945✓



- MGE
- 0.02225✓
- MAE
- 0.00549✓
- MGE
- 0.03982
- MAE
- 0.01117



- MGE
- 0.01052✓
- MAE
- 0.00205✓
- MGE
- 0.01176
- MAE
- 0.00436



- MGE
- 0.02272✓
- MAE
- 0.00521✓
- MGE
- 0.03169
- MAE
- 0.01241



- MGE
- 0.03536✓
- MAE
- 0.00578✓
- MGE
- 0.04629
- MAE
- 0.00984



- MGE
- 0.02418
- MAE
- 0.02733✓
- MGE
- 0.02316✓
- MAE
- 0.02950



- MGE
- 0.02203✓
- MAE
- 0.00368✓
- MGE
- 0.02309
- MAE
- 0.00498



- MGE
- 0.01403✓
- MAE
- 0.00312✓
- MGE
- 0.01993
- MAE
- 0.00674



- MGE
- 0.02054✓
- MAE
- 0.00590✓
- MGE
- 0.02594
- MAE
- 0.01077



- MGE
- 0.00960✓
- MAE
- 0.00134✓
- MGE
- 0.02922
- MAE
- 0.00526



- MGE
- 0.02730✓
- MAE
- 0.00734✓
- MGE
- 0.06121
- MAE
- 0.25267



- MGE
- 0.02940✓
- MAE
- 0.01110✓
- MGE
- 0.05816
- MAE
- 0.04968



- MGE
- 0.18102✓
- MAE
- 0.03429✓
- MGE
- 0.40532
- MAE
- 0.89601



- MGE
- 0.07739
- MAE
- 0.09324
- MGE
- 0.06874✓
- MAE
- 0.03261✓



- MGE
- 0.13603
- MAE
- 0.02861✓
- MGE
- 0.13145✓
- MAE
- 0.02954



- MGE
- 0.02226✓
- MAE
- 0.00320✓
- MGE
- 0.10039
- MAE
- 0.86266



- MGE
- 0.03189✓
- MAE
- 0.00686✓
- MGE
- 0.09129
- MAE
- 0.03098



- MGE
- 0.01003✓
- MAE
- 0.01228✓
- MGE
- 0.01240
- MAE
- 0.01791
Photo by Vinicius Wiesehofer on Unsplash



- MGE
- 0.02822✓
- MAE
- 0.01994✓
- MGE
- 0.04828
- MAE
- 0.09595



- MGE
- 0.06085
- MAE
- 0.24387
- MGE
- 0.04695✓
- MAE
- 0.21011✓



- MGE
- 0.02557✓
- MAE
- 0.01326✓
- MGE
- 0.03239
- MAE
- 0.03007



- MGE
- 0.02353✓
- MAE
- 0.00573✓
- MGE
- 0.03707
- MAE
- 0.02387



- MGE
- 0.03757✓
- MAE
- 0.01221✓
- MGE
- 0.05797
- MAE
- 0.02682



- MGE
- 0.01677✓
- MAE
- 0.00759✓
- MGE
- 0.02328
- MAE
- 0.01329
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.107 for BiRefNet HRSOD (73% lower)); MGE (edge error) is lower for withoutBG Open Weights (0.045 vs 0.071 for BiRefNet HRSOD (37% lower)); band MAE (error near the matte edge) is lower for withoutBG Open Weights (0.067 vs 0.164 for BiRefNet HRSOD (59% lower)).
By category (MAE, categories with at least 5 images): People (12 images) withoutBG Open Weights 0.007, BiRefNet HRSOD 0.015; Objects with Details (7 images) withoutBG Open Weights 0.017, BiRefNet HRSOD 0.145; Plants (7 images) withoutBG Open Weights 0.015, BiRefNet HRSOD 0.044.
withoutBG Open Weights is open weights (Apache-2.0); BiRefNet HRSOD 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 HRSOD | |
|---|---|---|
| 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 HRSOD
Shell
pip install rembg
rembg i -m birefnet-hrsod input.jpg output.pngFAQ
- Which has the lower alpha error on Bench v0, withoutBG Open Weights or BiRefNet HRSOD?
- withoutBG Open Weights has the lower MAE (withoutBG Open Weights 0.029, BiRefNet HRSOD 0.107); MGE is lower for withoutBG Open Weights (0.045 vs 0.071 for BiRefNet HRSOD (37% lower)). Scores are per-image means over 60 photos; lower is better.
- What are the license differences between withoutBG Open Weights and BiRefNet HRSOD?
- withoutBG Open Weights is open weights (Apache-2.0); BiRefNet HRSOD is open weights (MIT). Commercial use: withoutBG Open Weights allowed, BiRefNet HRSOD 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.