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.

MetricwithoutBG Open-Weight Modelbirefnet-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.

ImagesMetricwithoutBG Open-Weight Modelbirefnet-portrait
Routed to withoutBG matting (41)MAE0.01846 ✓0.04067
MGE (edges)0.03773 ✓0.04684
Routed to BiRefNet (17)MAE0.01509 ✓0.11050
MGE (edges)0.04305 ✓0.09146

Per-image averages, lower is better.

Original photo: ahmad pishnamazi zIuDgMu 51A
Ground Truth alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
withoutBG Open-Weight Model alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
birefnet-portrait alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03254✓
MAE
0.00960✓
birefnet-portrait
MGE
0.04134
MAE
0.01952
Original photo: alexander dummer ncyGJJ0TSLM
Ground Truth alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
withoutBG Open-Weight Model alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
birefnet-portrait alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.06122✓
MAE
0.02110✓
birefnet-portrait
MGE
0.11208
MAE
0.12959

Photo by Alexander Dummer on Unsplash

Original photo: alexandr bormotin u6Igr0mzcHQ
Ground Truth alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
withoutBG Open-Weight Model alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
birefnet-portrait alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02084✓
MAE
0.00601✓
birefnet-portrait
MGE
0.03608
MAE
0.01979
Original photo: alvan nee rpkBHHu2TyE
Ground Truth alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
withoutBG Open-Weight Model alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
birefnet-portrait alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01262✓
MAE
0.00461✓
birefnet-portrait
MGE
0.01557
MAE
0.00741

Photo by Alvan Nee on Unsplash

Original photo: andreas rasmussen wdhQcnLlXbU
Ground Truth alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
withoutBG Open-Weight Model alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
birefnet-portrait alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.17462✓
MAE
0.19712✓
birefnet-portrait
MGE
0.18634
MAE
0.23327

Photo by Andreas Rasmussen on Unsplash

Original photo: autumn bouquet vase
Ground Truth alpha matte: autumn bouquet vase
Alpha matte
withoutBG Open-Weight Model alpha matte: autumn bouquet vase
Alpha matte
birefnet-portrait alpha matte: autumn bouquet vase
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.07595✓
MAE
0.02381✓
birefnet-portrait
MGE
0.08386
MAE
0.09753
Original photo: balcony flower planter bokeh
Ground Truth alpha matte: balcony flower planter bokeh
Alpha matte
withoutBG Open-Weight Model alpha matte: balcony flower planter bokeh
Alpha matte
birefnet-portrait alpha matte: balcony flower planter bokeh
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03402✓
MAE
0.02906✓
birefnet-portrait
MGE
0.03811
MAE
0.22692
Original photo: balcony plant bokeh
Ground Truth alpha matte: balcony plant bokeh
Alpha matte
withoutBG Open-Weight Model alpha matte: balcony plant bokeh
Alpha matte
birefnet-portrait alpha matte: balcony plant bokeh
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.04621
MAE
0.01031
birefnet-portrait
MGE
0.04008✓
MAE
0.00974✓
Original photo: bearded man portrait
Ground Truth alpha matte: bearded man portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: bearded man portrait
Alpha matte
birefnet-portrait alpha matte: bearded man portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01697
MAE
0.00407✓
birefnet-portrait
MGE
0.01560✓
MAE
0.00698
Original photo: bike handlebar near beach
Ground Truth alpha matte: bike handlebar near beach
Alpha matte
withoutBG Open-Weight Model alpha matte: bike handlebar near beach
Alpha matte
birefnet-portrait alpha matte: bike handlebar near beach
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01899✓
MAE
0.00660✓
birefnet-portrait
MGE
0.04045
MAE
0.02887
Original photo: blowing dandelion seeds
Ground Truth alpha matte: blowing dandelion seeds
Alpha matte
withoutBG Open-Weight Model alpha matte: blowing dandelion seeds
Alpha matte
birefnet-portrait alpha matte: blowing dandelion seeds
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.04118✓
MAE
0.01690✓
birefnet-portrait
MGE
0.05656
MAE
0.03090
Original photo: caleb holden y6D8Y1Q6H U
Ground Truth alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
withoutBG Open-Weight Model alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
birefnet-portrait alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.04200✓
MAE
0.01715✓
birefnet-portrait
MGE
0.07841
MAE
0.13144
Original photo: camila quintero franco FdPhHdr34II
Ground Truth alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
withoutBG Open-Weight Model alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
birefnet-portrait alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.05736✓
MAE
0.08254✓
birefnet-portrait
MGE
0.07187
MAE
0.14147

Photo by Camila Quintero Franco on Unsplash

Original photo: campfire flames night
Ground Truth alpha matte: campfire flames night
Alpha matte
withoutBG Open-Weight Model alpha matte: campfire flames night
Alpha matte
birefnet-portrait alpha matte: campfire flames night
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01469✓
MAE
0.00695✓
birefnet-portrait
MGE
0.02176
MAE
0.01088
Original photo: cargo ebike park tracks
Ground Truth alpha matte: cargo ebike park tracks
Alpha matte
withoutBG Open-Weight Model alpha matte: cargo ebike park tracks
Alpha matte
birefnet-portrait alpha matte: cargo ebike park tracks
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.06638✓
MAE
0.01242✓
birefnet-portrait
MGE
0.10133
MAE
0.10167
Original photo: carlo sierra Q9oW6Xb8VtM
Ground Truth alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
withoutBG Open-Weight Model alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
birefnet-portrait alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01093✓
MAE
0.00177✓
birefnet-portrait
MGE
0.02860
MAE
0.00758

Photo by Carlo Sierra on Unsplash

Original photo: compound leaf raindrops
Ground Truth alpha matte: compound leaf raindrops
Alpha matte
withoutBG Open-Weight Model alpha matte: compound leaf raindrops
Alpha matte
birefnet-portrait alpha matte: compound leaf raindrops
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02498
MAE
0.00460
birefnet-portrait
MGE
0.02262✓
MAE
0.00455✓
Original photo: confetti sunset portrait
Ground Truth alpha matte: confetti sunset portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: confetti sunset portrait
Alpha matte
birefnet-portrait alpha matte: confetti sunset portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03139
MAE
0.00959✓
birefnet-portrait
MGE
0.03076✓
MAE
0.00979
Original photo: conor samuel T8p7Ak4HjF4
Ground Truth alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
withoutBG Open-Weight Model alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
birefnet-portrait alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02976✓
MAE
0.00740✓
birefnet-portrait
MGE
0.04187
MAE
0.03553

Photo by Conor Samuel on Unsplash

Original photo: davinci
Ground Truth alpha matte: davinci
Alpha matte
withoutBG Open-Weight Model alpha matte: davinci
Alpha matte
birefnet-portrait alpha matte: davinci
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.07155✓
MAE
0.01159✓
birefnet-portrait
MGE
0.32352
MAE
0.44287
Original photo: dried flowers clay vase
Ground Truth alpha matte: dried flowers clay vase
Alpha matte
withoutBG Open-Weight Model alpha matte: dried flowers clay vase
Alpha matte
birefnet-portrait alpha matte: dried flowers clay vase
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03577✓
MAE
0.00660✓
birefnet-portrait
MGE
0.04891
MAE
0.01535
Original photo: elderly man running blur
Ground Truth alpha matte: elderly man running blur
Alpha matte
withoutBG Open-Weight Model alpha matte: elderly man running blur
Alpha matte
birefnet-portrait alpha matte: elderly man running blur
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01789
MAE
0.00452
birefnet-portrait
MGE
0.01050✓
MAE
0.00324✓
Original photo: grass seed stem bokeh
Ground Truth alpha matte: grass seed stem bokeh
Alpha matte
withoutBG Open-Weight Model alpha matte: grass seed stem bokeh
Alpha matte
birefnet-portrait alpha matte: grass seed stem bokeh
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03015✓
MAE
0.01049✓
birefnet-portrait
MGE
0.03766
MAE
0.02335
Original photo: hanging plant window
Ground Truth alpha matte: hanging plant window
Alpha matte
withoutBG Open-Weight Model alpha matte: hanging plant window
Alpha matte
birefnet-portrait alpha matte: hanging plant window
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.05026✓
MAE
0.01100✓
birefnet-portrait
MGE
0.09709
MAE
0.04888
Original photo: hasan almasi BIrL2bdlMa4
Ground Truth alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
withoutBG Open-Weight Model alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
birefnet-portrait alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01489✓
MAE
0.00434✓
birefnet-portrait
MGE
0.02386
MAE
0.01107
Original photo: lars bo nielsen V9r37JFKQuo
Ground Truth alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
withoutBG Open-Weight Model alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
birefnet-portrait alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01399✓
MAE
0.00246✓
birefnet-portrait
MGE
0.03122
MAE
0.00946

Photo by Lars Bo Nielsen on Unsplash

Original photo: mayer tawfik nUC4Xyhq bc
Ground Truth alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
withoutBG Open-Weight Model alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
birefnet-portrait alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.05191✓
MAE
0.01377✓
birefnet-portrait
MGE
0.07340
MAE
0.06805

Photo by Mayer Tawfik on Unsplash

Original photo: messy bun cityscape
Ground Truth alpha matte: messy bun cityscape
Alpha matte
withoutBG Open-Weight Model alpha matte: messy bun cityscape
Alpha matte
birefnet-portrait alpha matte: messy bun cityscape
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01835✓
MAE
0.00586✓
birefnet-portrait
MGE
0.01919
MAE
0.00875
Original photo: messy hair bearded portrait
Ground Truth alpha matte: messy hair bearded portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: messy hair bearded portrait
Alpha matte
birefnet-portrait alpha matte: messy hair bearded portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01551✓
MAE
0.00578✓
birefnet-portrait
MGE
0.02099
MAE
0.01246
Original photo: niko tsviliov qW8WugAYC7g
Ground Truth alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
withoutBG Open-Weight Model alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
birefnet-portrait alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02743✓
MAE
0.00856✓
birefnet-portrait
MGE
0.03219
MAE
0.01239

Photo by Niko Tsviliov on Unsplash

Original photo: norbert braun ldGoVkxopwI
Ground Truth alpha matte: norbert braun ldGoVkxopwI
Alpha matte
withoutBG Open-Weight Model alpha matte: norbert braun ldGoVkxopwI
Alpha matte
birefnet-portrait alpha matte: norbert braun ldGoVkxopwI
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.14105✓
MAE
0.05132✓
birefnet-portrait
MGE
0.22425
MAE
0.15672

Photo by Norbert Braun on Unsplash

Original photo: nortwolf
Ground Truth alpha matte: nortwolf
Alpha matte
withoutBG Open-Weight Model alpha matte: nortwolf
Alpha matte
birefnet-portrait alpha matte: nortwolf
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01083✓
MAE
0.00164✓
birefnet-portrait
MGE
0.03737
MAE
0.02332
Original photo: orange berries branch
Ground Truth alpha matte: orange berries branch
Alpha matte
withoutBG Open-Weight Model alpha matte: orange berries branch
Alpha matte
birefnet-portrait alpha matte: orange berries branch
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.05432✓
MAE
0.02385✓
birefnet-portrait
MGE
0.07146
MAE
0.22746
Original photo: pieter Qa8Y_W4PORw
Ground Truth alpha matte: pieter Qa8Y_W4PORw
Alpha matte
withoutBG Open-Weight Model alpha matte: pieter Qa8Y_W4PORw
Alpha matte
birefnet-portrait alpha matte: pieter Qa8Y_W4PORw
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03119✓
MAE
0.02758✓
birefnet-portrait
MGE
0.05437
MAE
0.11442

Photo by Pieter on Unsplash

Original photo: rachel coyne l1LT rVqbDw
Ground Truth alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
withoutBG Open-Weight Model alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
birefnet-portrait alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02442✓
MAE
0.01933✓
birefnet-portrait
MGE
0.03170
MAE
0.03309
Original photo: red flower balcony bokeh
Ground Truth alpha matte: red flower balcony bokeh
Alpha matte
withoutBG Open-Weight Model alpha matte: red flower balcony bokeh
Alpha matte
birefnet-portrait alpha matte: red flower balcony bokeh
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02832
MAE
0.01777
birefnet-portrait
MGE
0.02543✓
MAE
0.00925✓
Original photo: rocky coast bush foreground
Ground Truth alpha matte: rocky coast bush foreground
Alpha matte
withoutBG Open-Weight Model alpha matte: rocky coast bush foreground
Alpha matte
birefnet-portrait alpha matte: rocky coast bush foreground
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.37410
MAE
0.49629
birefnet-portrait
MGE
0.36593✓
MAE
0.41233✓
Original photo: small fishing boat bw
Ground Truth alpha matte: small fishing boat bw
Alpha matte
withoutBG Open-Weight Model alpha matte: small fishing boat bw
Alpha matte
birefnet-portrait alpha matte: small fishing boat bw
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02225✓
MAE
0.00549✓
birefnet-portrait
MGE
0.05887
MAE
0.32245
Original photo: smiling man seaside sunset
Ground Truth alpha matte: smiling man seaside sunset
Alpha matte
withoutBG Open-Weight Model alpha matte: smiling man seaside sunset
Alpha matte
birefnet-portrait alpha matte: smiling man seaside sunset
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01052
MAE
0.00205✓
birefnet-portrait
MGE
0.00747✓
MAE
0.00291
Original photo: smiling woman seaside
Ground Truth alpha matte: smiling woman seaside
Alpha matte
withoutBG Open-Weight Model alpha matte: smiling woman seaside
Alpha matte
birefnet-portrait alpha matte: smiling woman seaside
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02272
MAE
0.00521✓
birefnet-portrait
MGE
0.02263✓
MAE
0.00842
Original photo: spoked bike wheel
Ground Truth alpha matte: spoked bike wheel
Alpha matte
withoutBG Open-Weight Model alpha matte: spoked bike wheel
Alpha matte
birefnet-portrait alpha matte: spoked bike wheel
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03536✓
MAE
0.00578✓
birefnet-portrait
MGE
0.05296
MAE
0.02716
Original photo: sprinter motion blur
Ground Truth alpha matte: sprinter motion blur
Alpha matte
withoutBG Open-Weight Model alpha matte: sprinter motion blur
Alpha matte
birefnet-portrait alpha matte: sprinter motion blur
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02418
MAE
0.02733
birefnet-portrait
MGE
0.02091✓
MAE
0.02130✓
Original photo: street dancer studio pose
Ground Truth alpha matte: street dancer studio pose
Alpha matte
withoutBG Open-Weight Model alpha matte: street dancer studio pose
Alpha matte
birefnet-portrait alpha matte: street dancer studio pose
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02203
MAE
0.00368
birefnet-portrait
MGE
0.01334✓
MAE
0.00231✓
Original photo: street portrait man
Ground Truth alpha matte: street portrait man
Alpha matte
withoutBG Open-Weight Model alpha matte: street portrait man
Alpha matte
birefnet-portrait alpha matte: street portrait man
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01403
MAE
0.00312✓
birefnet-portrait
MGE
0.01116✓
MAE
0.00319
Original photo: sunset field portrait
Ground Truth alpha matte: sunset field portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: sunset field portrait
Alpha matte
birefnet-portrait alpha matte: sunset field portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02054✓
MAE
0.00590✓
birefnet-portrait
MGE
0.02111
MAE
0.00942
Original photo: swan
Ground Truth alpha matte: swan
Alpha matte
withoutBG Open-Weight Model alpha matte: swan
Alpha matte
birefnet-portrait alpha matte: swan
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.00960✓
MAE
0.00134✓
birefnet-portrait
MGE
0.01948
MAE
0.00300
Original photo: tabby cat portrait
Ground Truth alpha matte: tabby cat portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: tabby cat portrait
Alpha matte
birefnet-portrait alpha matte: tabby cat portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02730✓
MAE
0.00734✓
birefnet-portrait
MGE
0.02939
MAE
0.01078
Original photo: terrier dog mugshot
Ground Truth alpha matte: terrier dog mugshot
Alpha matte
withoutBG Open-Weight Model alpha matte: terrier dog mugshot
Alpha matte
birefnet-portrait alpha matte: terrier dog mugshot
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02940✓
MAE
0.01110✓
birefnet-portrait
MGE
0.03867
MAE
0.02312
Original photo: trigonometry notes whiteboard
Ground Truth alpha matte: trigonometry notes whiteboard
Alpha matte
withoutBG Open-Weight Model alpha matte: trigonometry notes whiteboard
Alpha matte
birefnet-portrait alpha matte: trigonometry notes whiteboard
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.18102✓
MAE
0.03429✓
birefnet-portrait
MGE
0.38865
MAE
0.10853
Original photo: two bikes field
Ground Truth alpha matte: two bikes field
Alpha matte
withoutBG Open-Weight Model alpha matte: two bikes field
Alpha matte
birefnet-portrait alpha matte: two bikes field
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.07739✓
MAE
0.09324✓
birefnet-portrait
MGE
0.08326
MAE
0.22116
Original photo: two gravel bikes park
Ground Truth alpha matte: two gravel bikes park
Alpha matte
withoutBG Open-Weight Model alpha matte: two gravel bikes park
Alpha matte
birefnet-portrait alpha matte: two gravel bikes park
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.13603✓
MAE
0.02861✓
birefnet-portrait
MGE
0.15441
MAE
0.10118
Original photo: typography
Ground Truth alpha matte: typography
Alpha matte
withoutBG Open-Weight Model alpha matte: typography
Alpha matte
birefnet-portrait alpha matte: typography
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02226✓
MAE
0.00320✓
birefnet-portrait
MGE
0.08130
MAE
0.03866
Original photo: venus
Ground Truth alpha matte: venus
Alpha matte
withoutBG Open-Weight Model alpha matte: venus
Alpha matte
birefnet-portrait alpha matte: venus
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03189✓
MAE
0.00686✓
birefnet-portrait
MGE
0.06508
MAE
0.02079
Original photo: vinicius wiesehofer VqRTfOxHSYg
Ground Truth alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
withoutBG Open-Weight Model alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
birefnet-portrait alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01003
MAE
0.01228
birefnet-portrait
MGE
0.01001✓
MAE
0.01205✓

Photo by Vinicius Wiesehofer on Unsplash

Original photo: vino li J4JjsFJKhpI
Ground Truth alpha matte: vino li J4JjsFJKhpI
Alpha matte
withoutBG Open-Weight Model alpha matte: vino li J4JjsFJKhpI
Alpha matte
birefnet-portrait alpha matte: vino li J4JjsFJKhpI
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02822✓
MAE
0.01994✓
birefnet-portrait
MGE
0.04156
MAE
0.06607
Original photo: white chess pieces tournament
Ground Truth alpha matte: white chess pieces tournament
Alpha matte
withoutBG Open-Weight Model alpha matte: white chess pieces tournament
Alpha matte
birefnet-portrait alpha matte: white chess pieces tournament
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.06085
MAE
0.24387✓
birefnet-portrait
MGE
0.03899✓
MAE
0.32606
Original photo: william randles H48cS 5xt7U
Ground Truth alpha matte: william randles H48cS 5xt7U
Alpha matte
withoutBG Open-Weight Model alpha matte: william randles H48cS 5xt7U
Alpha matte
birefnet-portrait alpha matte: william randles H48cS 5xt7U
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02557
MAE
0.01326✓
birefnet-portrait
MGE
0.02494✓
MAE
0.02050
Original photo: windblown curly hair backpack
Ground Truth alpha matte: windblown curly hair backpack
Alpha matte
withoutBG Open-Weight Model alpha matte: windblown curly hair backpack
Alpha matte
birefnet-portrait alpha matte: windblown curly hair backpack
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.02353✓
MAE
0.00573✓
birefnet-portrait
MGE
0.03066
MAE
0.01006
Original photo: windblown curly portrait
Ground Truth alpha matte: windblown curly portrait
Alpha matte
withoutBG Open-Weight Model alpha matte: windblown curly portrait
Alpha matte
birefnet-portrait alpha matte: windblown curly portrait
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.03757✓
MAE
0.01221✓
birefnet-portrait
MGE
0.05210
MAE
0.02417
Original photo: woman street portrait glasses
Ground Truth alpha matte: woman street portrait glasses
Alpha matte
withoutBG Open-Weight Model alpha matte: woman street portrait glasses
Alpha matte
birefnet-portrait alpha matte: woman street portrait glasses
Alpha matte
Original
Ground Truth
withoutBG Open-Weight Model
MGE
0.01677✓
MAE
0.00759✓
birefnet-portrait
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 WeightsBiRefNet Portrait
AccessOpen weightsOpen weights
LicenseApache-2.0MIT
Commercial useAllowedAllowed
Runs onYour 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.png

FAQ

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.