- BiRefNet General
- Open weights · commercially permissiveLicense: MIT
- BiRefNet HRSOD
- Open weights · commercially permissiveLicense: MIT
birefnet-general 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 | birefnet-general | birefnet-hrsod |
|---|---|---|
| MGE (Edge Quality) | 0.04948 ✓ | 0.07138 |
| MAE (Overall Accuracy) | 0.04262 ✓ | 0.10692 |



- MGE
- 0.04048✓
- MAE
- 0.01865✓
- MGE
- 0.04937
- MAE
- 0.03044



- MGE
- 0.09594✓
- MAE
- 0.06799✓
- MGE
- 0.10010
- MAE
- 0.06858
Photo by Alexander Dummer on Unsplash



- MGE
- 0.02067✓
- MAE
- 0.00625✓
- MGE
- 0.04065
- MAE
- 0.02237



- MGE
- 0.02110
- MAE
- 0.00739
- MGE
- 0.01652✓
- MAE
- 0.00695✓



- MGE
- 0.17845✓
- MAE
- 0.20501✓
- MGE
- 0.18179
- MAE
- 0.29729
Photo by Andreas Rasmussen on Unsplash



- MGE
- 0.03450✓
- MAE
- 0.00754✓
- MGE
- 0.07758
- MAE
- 0.03906



- MGE
- 0.03391✓
- MAE
- 0.02906✓
- MGE
- 0.04882
- MAE
- 0.09456



- MGE
- 0.03369✓
- MAE
- 0.00657✓
- MGE
- 0.04549
- MAE
- 0.01077



- MGE
- 0.01534✓
- MAE
- 0.00932✓
- MGE
- 0.02432
- MAE
- 0.01259



- MGE
- 0.01776✓
- MAE
- 0.00662✓
- MGE
- 0.02960
- MAE
- 0.01206



- MGE
- 0.05518
- MAE
- 0.02445✓
- MGE
- 0.05418✓
- MAE
- 0.02499



- MGE
- 0.08626
- MAE
- 0.25936
- MGE
- 0.08044✓
- MAE
- 0.16338✓



- MGE
- 0.07192
- MAE
- 0.15422✓
- MGE
- 0.07129✓
- MAE
- 0.19791
Photo by Camila Quintero Franco on Unsplash



- MGE
- 0.02070✓
- MAE
- 0.00960
- MGE
- 0.02189
- MAE
- 0.00934✓



- MGE
- 0.06499✓
- MAE
- 0.01274✓
- MGE
- 0.08612
- MAE
- 0.01928



- MGE
- 0.01052✓
- MAE
- 0.00263✓
- MGE
- 0.03076
- MAE
- 0.00841
Photo by Carlo Sierra on Unsplash



- MGE
- 0.01420✓
- MAE
- 0.00333✓
- MGE
- 0.02243
- MAE
- 0.00553



- MGE
- 0.03582✓
- MAE
- 0.01162✓
- MGE
- 0.04122
- MAE
- 0.01428



- MGE
- 0.03407✓
- MAE
- 0.02479✓
- MGE
- 0.04123
- MAE
- 0.03421
Photo by Conor Samuel on Unsplash



- MGE
- 0.06431✓
- MAE
- 0.01097✓
- MGE
- 0.48545
- MAE
- 0.61007



- MGE
- 0.02967✓
- MAE
- 0.00716✓
- MGE
- 0.04456
- MAE
- 0.01154



- MGE
- 0.01780
- MAE
- 0.00511
- MGE
- 0.01640✓
- MAE
- 0.00473✓



- MGE
- 0.02221✓
- MAE
- 0.00778✓
- MGE
- 0.03085
- MAE
- 0.01043



- MGE
- 0.04873✓
- MAE
- 0.01122✓
- MGE
- 0.09147
- MAE
- 0.05514



- MGE
- 0.04918
- MAE
- 0.02346✓
- MGE
- 0.04398✓
- MAE
- 0.02804



- MGE
- 0.01367✓
- MAE
- 0.00401✓
- MGE
- 0.03426
- MAE
- 0.00896
Photo by Lars Bo Nielsen on Unsplash



- MGE
- 0.07271✓
- MAE
- 0.09303✓
- MGE
- 0.08477
- MAE
- 0.09860
Photo by Mayer Tawfik on Unsplash



- MGE
- 0.01818✓
- MAE
- 0.00827✓
- MGE
- 0.02829
- MAE
- 0.01542



- MGE
- 0.01969✓
- MAE
- 0.01374✓
- MGE
- 0.02339
- MAE
- 0.01436



- MGE
- 0.03639✓
- MAE
- 0.01379✓
- MGE
- 0.03976
- MAE
- 0.01595
Photo by Niko Tsviliov on Unsplash



- MGE
- 0.23620✓
- MAE
- 0.14015
- MGE
- 0.23697
- MAE
- 0.13760✓
Photo by Norbert Braun on Unsplash



- MGE
- 0.01254✓
- MAE
- 0.00193✓
- MGE
- 0.06342
- MAE
- 0.89895



- MGE
- 0.05570✓
- MAE
- 0.02558✓
- MGE
- 0.07925
- MAE
- 0.12626



- MGE
- 0.06054
- MAE
- 0.09974
- MGE
- 0.05812✓
- MAE
- 0.09891✓



- MGE
- 0.03188✓
- MAE
- 0.02975✓
- MGE
- 0.05506
- MAE
- 0.06566



- MGE
- 0.01467✓
- MAE
- 0.00332✓
- MGE
- 0.02176
- MAE
- 0.00588



- MGE
- 0.34926✓
- MAE
- 0.46453✓
- MGE
- 0.35515
- MAE
- 0.46945



- MGE
- 0.02090✓
- MAE
- 0.00612✓
- MGE
- 0.03982
- MAE
- 0.01117



- MGE
- 0.00619✓
- MAE
- 0.00277✓
- MGE
- 0.01176
- MAE
- 0.00436



- MGE
- 0.01810✓
- MAE
- 0.00714✓
- MGE
- 0.03169
- MAE
- 0.01241



- MGE
- 0.03517✓
- MAE
- 0.00648✓
- MGE
- 0.04629
- MAE
- 0.00984



- MGE
- 0.02895
- MAE
- 0.02783✓
- MGE
- 0.02316✓
- MAE
- 0.02950



- MGE
- 0.01442✓
- MAE
- 0.00315✓
- MGE
- 0.02309
- MAE
- 0.00498



- MGE
- 0.01079✓
- MAE
- 0.00372✓
- MGE
- 0.01993
- MAE
- 0.00674



- MGE
- 0.01879✓
- MAE
- 0.00851✓
- MGE
- 0.02594
- MAE
- 0.01077



- MGE
- 0.00747✓
- MAE
- 0.00115✓
- MGE
- 0.02922
- MAE
- 0.00526



- MGE
- 0.04204✓
- MAE
- 0.07583✓
- MGE
- 0.06121
- MAE
- 0.25267



- MGE
- 0.09392
- MAE
- 0.06015
- MGE
- 0.05816✓
- MAE
- 0.04968✓



- MGE
- 0.17273✓
- MAE
- 0.03358✓
- MGE
- 0.40532
- MAE
- 0.89601



- MGE
- 0.07979
- MAE
- 0.09417
- MGE
- 0.06874✓
- MAE
- 0.03261✓



- MGE
- 0.09319✓
- MAE
- 0.01831✓
- MGE
- 0.13145
- MAE
- 0.02954



- MGE
- 0.01951✓
- MAE
- 0.00290✓
- MGE
- 0.10039
- MAE
- 0.86266



- MGE
- 0.03390✓
- MAE
- 0.00917✓
- MGE
- 0.09129
- MAE
- 0.03098



- MGE
- 0.01230✓
- MAE
- 0.01388✓
- MGE
- 0.01240
- MAE
- 0.01791
Photo by Vinicius Wiesehofer on Unsplash



- MGE
- 0.04915
- MAE
- 0.06760✓
- MGE
- 0.04828✓
- MAE
- 0.09595



- MGE
- 0.04032✓
- MAE
- 0.21379
- MGE
- 0.04695
- MAE
- 0.21011✓



- MGE
- 0.03049✓
- MAE
- 0.02974✓
- MGE
- 0.03239
- MAE
- 0.03007



- MGE
- 0.03339✓
- MAE
- 0.01185✓
- MGE
- 0.03707
- MAE
- 0.02387



- MGE
- 0.04978✓
- MAE
- 0.01930✓
- MGE
- 0.05797
- MAE
- 0.02682



- MGE
- 0.01854✓
- MAE
- 0.00954✓
- 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 BiRefNet General (0.043 vs 0.107 for BiRefNet HRSOD (60% lower)); MGE (edge error) is lower for BiRefNet General (0.049 vs 0.071 for BiRefNet HRSOD (31% lower)); band MAE (error near the matte edge) is lower for BiRefNet General (0.093 vs 0.164 for BiRefNet HRSOD (44% lower)).
By category (MAE, categories with at least 5 images): People (12 images) BiRefNet General 0.011, BiRefNet HRSOD 0.015; Objects with Details (7 images) BiRefNet General 0.013, BiRefNet HRSOD 0.145; Plants (7 images) BiRefNet General 0.012, BiRefNet HRSOD 0.044.
BiRefNet General is open weights (MIT); BiRefNet HRSOD is open weights (MIT).
Specs
| BiRefNet General | BiRefNet HRSOD | |
|---|---|---|
| Access | Open weights | Open weights |
| License | MIT | MIT |
| Commercial use | Allowed | Allowed |
| Runs on | Your own machine (ONNX, input 1024×1024) | Your own machine (ONNX, input 1024×1024) |
How to run each
BiRefNet General
Shell
pip install rembg
rembg i -m birefnet-general input.jpg output.pngBiRefNet HRSOD
Shell
pip install rembg
rembg i -m birefnet-hrsod input.jpg output.pngFAQ
- Which has the lower alpha error on Bench v0, BiRefNet General or BiRefNet HRSOD?
- BiRefNet General has the lower MAE (BiRefNet General 0.043, BiRefNet HRSOD 0.107); MGE is lower for BiRefNet General (0.049 vs 0.071 for BiRefNet HRSOD (31% lower)). Scores are per-image means over 60 photos; lower is better.
- What are the license differences between BiRefNet General and BiRefNet HRSOD?
- BiRefNet General is open weights (MIT); BiRefNet HRSOD is open weights (MIT). Commercial use: BiRefNet General 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.