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.

Metricbirefnet-generalbirefnet-hrsod
MGE (Edge Quality)0.04948 ✓0.07138
MAE (Overall Accuracy)0.04262 ✓0.10692
Original photo: ahmad pishnamazi zIuDgMu 51A
Ground Truth alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
birefnet-general alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
birefnet-hrsod alpha matte: ahmad pishnamazi zIuDgMu 51A
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04048✓
MAE
0.01865✓
birefnet-hrsod
MGE
0.04937
MAE
0.03044
Original photo: alexander dummer ncyGJJ0TSLM
Ground Truth alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
birefnet-general alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
birefnet-hrsod alpha matte: alexander dummer ncyGJJ0TSLM
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.09594✓
MAE
0.06799✓
birefnet-hrsod
MGE
0.10010
MAE
0.06858

Photo by Alexander Dummer on Unsplash

Original photo: alexandr bormotin u6Igr0mzcHQ
Ground Truth alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
birefnet-general alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
birefnet-hrsod alpha matte: alexandr bormotin u6Igr0mzcHQ
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02067✓
MAE
0.00625✓
birefnet-hrsod
MGE
0.04065
MAE
0.02237
Original photo: alvan nee rpkBHHu2TyE
Ground Truth alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
birefnet-general alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
birefnet-hrsod alpha matte: alvan nee rpkBHHu2TyE
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02110
MAE
0.00739
birefnet-hrsod
MGE
0.01652✓
MAE
0.00695✓

Photo by Alvan Nee on Unsplash

Original photo: andreas rasmussen wdhQcnLlXbU
Ground Truth alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
birefnet-general alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
birefnet-hrsod alpha matte: andreas rasmussen wdhQcnLlXbU
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.17845✓
MAE
0.20501✓
birefnet-hrsod
MGE
0.18179
MAE
0.29729

Photo by Andreas Rasmussen on Unsplash

Original photo: autumn bouquet vase
Ground Truth alpha matte: autumn bouquet vase
Alpha matte
birefnet-general alpha matte: autumn bouquet vase
Alpha matte
birefnet-hrsod alpha matte: autumn bouquet vase
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03450✓
MAE
0.00754✓
birefnet-hrsod
MGE
0.07758
MAE
0.03906
Original photo: balcony flower planter bokeh
Ground Truth alpha matte: balcony flower planter bokeh
Alpha matte
birefnet-general alpha matte: balcony flower planter bokeh
Alpha matte
birefnet-hrsod alpha matte: balcony flower planter bokeh
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03391✓
MAE
0.02906✓
birefnet-hrsod
MGE
0.04882
MAE
0.09456
Original photo: balcony plant bokeh
Ground Truth alpha matte: balcony plant bokeh
Alpha matte
birefnet-general alpha matte: balcony plant bokeh
Alpha matte
birefnet-hrsod alpha matte: balcony plant bokeh
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03369✓
MAE
0.00657✓
birefnet-hrsod
MGE
0.04549
MAE
0.01077
Original photo: bearded man portrait
Ground Truth alpha matte: bearded man portrait
Alpha matte
birefnet-general alpha matte: bearded man portrait
Alpha matte
birefnet-hrsod alpha matte: bearded man portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01534✓
MAE
0.00932✓
birefnet-hrsod
MGE
0.02432
MAE
0.01259
Original photo: bike handlebar near beach
Ground Truth alpha matte: bike handlebar near beach
Alpha matte
birefnet-general alpha matte: bike handlebar near beach
Alpha matte
birefnet-hrsod alpha matte: bike handlebar near beach
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01776✓
MAE
0.00662✓
birefnet-hrsod
MGE
0.02960
MAE
0.01206
Original photo: blowing dandelion seeds
Ground Truth alpha matte: blowing dandelion seeds
Alpha matte
birefnet-general alpha matte: blowing dandelion seeds
Alpha matte
birefnet-hrsod alpha matte: blowing dandelion seeds
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.05518
MAE
0.02445✓
birefnet-hrsod
MGE
0.05418✓
MAE
0.02499
Original photo: caleb holden y6D8Y1Q6H U
Ground Truth alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
birefnet-general alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
birefnet-hrsod alpha matte: caleb holden y6D8Y1Q6H U
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.08626
MAE
0.25936
birefnet-hrsod
MGE
0.08044✓
MAE
0.16338✓
Original photo: camila quintero franco FdPhHdr34II
Ground Truth alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
birefnet-general alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
birefnet-hrsod alpha matte: camila quintero franco FdPhHdr34II
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.07192
MAE
0.15422✓
birefnet-hrsod
MGE
0.07129✓
MAE
0.19791

Photo by Camila Quintero Franco on Unsplash

Original photo: campfire flames night
Ground Truth alpha matte: campfire flames night
Alpha matte
birefnet-general alpha matte: campfire flames night
Alpha matte
birefnet-hrsod alpha matte: campfire flames night
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02070✓
MAE
0.00960
birefnet-hrsod
MGE
0.02189
MAE
0.00934✓
Original photo: cargo ebike park tracks
Ground Truth alpha matte: cargo ebike park tracks
Alpha matte
birefnet-general alpha matte: cargo ebike park tracks
Alpha matte
birefnet-hrsod alpha matte: cargo ebike park tracks
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.06499✓
MAE
0.01274✓
birefnet-hrsod
MGE
0.08612
MAE
0.01928
Original photo: carlo sierra Q9oW6Xb8VtM
Ground Truth alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
birefnet-general alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
birefnet-hrsod alpha matte: carlo sierra Q9oW6Xb8VtM
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01052✓
MAE
0.00263✓
birefnet-hrsod
MGE
0.03076
MAE
0.00841

Photo by Carlo Sierra on Unsplash

Original photo: compound leaf raindrops
Ground Truth alpha matte: compound leaf raindrops
Alpha matte
birefnet-general alpha matte: compound leaf raindrops
Alpha matte
birefnet-hrsod alpha matte: compound leaf raindrops
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01420✓
MAE
0.00333✓
birefnet-hrsod
MGE
0.02243
MAE
0.00553
Original photo: confetti sunset portrait
Ground Truth alpha matte: confetti sunset portrait
Alpha matte
birefnet-general alpha matte: confetti sunset portrait
Alpha matte
birefnet-hrsod alpha matte: confetti sunset portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03582✓
MAE
0.01162✓
birefnet-hrsod
MGE
0.04122
MAE
0.01428
Original photo: conor samuel T8p7Ak4HjF4
Ground Truth alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
birefnet-general alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
birefnet-hrsod alpha matte: conor samuel T8p7Ak4HjF4
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03407✓
MAE
0.02479✓
birefnet-hrsod
MGE
0.04123
MAE
0.03421

Photo by Conor Samuel on Unsplash

Original photo: davinci
Ground Truth alpha matte: davinci
Alpha matte
birefnet-general alpha matte: davinci
Alpha matte
birefnet-hrsod alpha matte: davinci
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.06431✓
MAE
0.01097✓
birefnet-hrsod
MGE
0.48545
MAE
0.61007
Original photo: dried flowers clay vase
Ground Truth alpha matte: dried flowers clay vase
Alpha matte
birefnet-general alpha matte: dried flowers clay vase
Alpha matte
birefnet-hrsod alpha matte: dried flowers clay vase
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02967✓
MAE
0.00716✓
birefnet-hrsod
MGE
0.04456
MAE
0.01154
Original photo: elderly man running blur
Ground Truth alpha matte: elderly man running blur
Alpha matte
birefnet-general alpha matte: elderly man running blur
Alpha matte
birefnet-hrsod alpha matte: elderly man running blur
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01780
MAE
0.00511
birefnet-hrsod
MGE
0.01640✓
MAE
0.00473✓
Original photo: grass seed stem bokeh
Ground Truth alpha matte: grass seed stem bokeh
Alpha matte
birefnet-general alpha matte: grass seed stem bokeh
Alpha matte
birefnet-hrsod alpha matte: grass seed stem bokeh
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02221✓
MAE
0.00778✓
birefnet-hrsod
MGE
0.03085
MAE
0.01043
Original photo: hanging plant window
Ground Truth alpha matte: hanging plant window
Alpha matte
birefnet-general alpha matte: hanging plant window
Alpha matte
birefnet-hrsod alpha matte: hanging plant window
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04873✓
MAE
0.01122✓
birefnet-hrsod
MGE
0.09147
MAE
0.05514
Original photo: hasan almasi BIrL2bdlMa4
Ground Truth alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
birefnet-general alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
birefnet-hrsod alpha matte: hasan almasi BIrL2bdlMa4
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04918
MAE
0.02346✓
birefnet-hrsod
MGE
0.04398✓
MAE
0.02804
Original photo: lars bo nielsen V9r37JFKQuo
Ground Truth alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
birefnet-general alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
birefnet-hrsod alpha matte: lars bo nielsen V9r37JFKQuo
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01367✓
MAE
0.00401✓
birefnet-hrsod
MGE
0.03426
MAE
0.00896

Photo by Lars Bo Nielsen on Unsplash

Original photo: mayer tawfik nUC4Xyhq bc
Ground Truth alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
birefnet-general alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
birefnet-hrsod alpha matte: mayer tawfik nUC4Xyhq bc
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.07271✓
MAE
0.09303✓
birefnet-hrsod
MGE
0.08477
MAE
0.09860

Photo by Mayer Tawfik on Unsplash

Original photo: messy bun cityscape
Ground Truth alpha matte: messy bun cityscape
Alpha matte
birefnet-general alpha matte: messy bun cityscape
Alpha matte
birefnet-hrsod alpha matte: messy bun cityscape
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01818✓
MAE
0.00827✓
birefnet-hrsod
MGE
0.02829
MAE
0.01542
Original photo: messy hair bearded portrait
Ground Truth alpha matte: messy hair bearded portrait
Alpha matte
birefnet-general alpha matte: messy hair bearded portrait
Alpha matte
birefnet-hrsod alpha matte: messy hair bearded portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01969✓
MAE
0.01374✓
birefnet-hrsod
MGE
0.02339
MAE
0.01436
Original photo: niko tsviliov qW8WugAYC7g
Ground Truth alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
birefnet-general alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
birefnet-hrsod alpha matte: niko tsviliov qW8WugAYC7g
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03639✓
MAE
0.01379✓
birefnet-hrsod
MGE
0.03976
MAE
0.01595

Photo by Niko Tsviliov on Unsplash

Original photo: norbert braun ldGoVkxopwI
Ground Truth alpha matte: norbert braun ldGoVkxopwI
Alpha matte
birefnet-general alpha matte: norbert braun ldGoVkxopwI
Alpha matte
birefnet-hrsod alpha matte: norbert braun ldGoVkxopwI
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.23620✓
MAE
0.14015
birefnet-hrsod
MGE
0.23697
MAE
0.13760✓

Photo by Norbert Braun on Unsplash

Original photo: nortwolf
Ground Truth alpha matte: nortwolf
Alpha matte
birefnet-general alpha matte: nortwolf
Alpha matte
birefnet-hrsod alpha matte: nortwolf
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01254✓
MAE
0.00193✓
birefnet-hrsod
MGE
0.06342
MAE
0.89895
Original photo: orange berries branch
Ground Truth alpha matte: orange berries branch
Alpha matte
birefnet-general alpha matte: orange berries branch
Alpha matte
birefnet-hrsod alpha matte: orange berries branch
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.05570✓
MAE
0.02558✓
birefnet-hrsod
MGE
0.07925
MAE
0.12626
Original photo: pieter Qa8Y_W4PORw
Ground Truth alpha matte: pieter Qa8Y_W4PORw
Alpha matte
birefnet-general alpha matte: pieter Qa8Y_W4PORw
Alpha matte
birefnet-hrsod alpha matte: pieter Qa8Y_W4PORw
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.06054
MAE
0.09974
birefnet-hrsod
MGE
0.05812✓
MAE
0.09891✓

Photo by Pieter on Unsplash

Original photo: rachel coyne l1LT rVqbDw
Ground Truth alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
birefnet-general alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
birefnet-hrsod alpha matte: rachel coyne l1LT rVqbDw
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03188✓
MAE
0.02975✓
birefnet-hrsod
MGE
0.05506
MAE
0.06566
Original photo: red flower balcony bokeh
Ground Truth alpha matte: red flower balcony bokeh
Alpha matte
birefnet-general alpha matte: red flower balcony bokeh
Alpha matte
birefnet-hrsod alpha matte: red flower balcony bokeh
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01467✓
MAE
0.00332✓
birefnet-hrsod
MGE
0.02176
MAE
0.00588
Original photo: rocky coast bush foreground
Ground Truth alpha matte: rocky coast bush foreground
Alpha matte
birefnet-general alpha matte: rocky coast bush foreground
Alpha matte
birefnet-hrsod alpha matte: rocky coast bush foreground
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.34926✓
MAE
0.46453✓
birefnet-hrsod
MGE
0.35515
MAE
0.46945
Original photo: small fishing boat bw
Ground Truth alpha matte: small fishing boat bw
Alpha matte
birefnet-general alpha matte: small fishing boat bw
Alpha matte
birefnet-hrsod alpha matte: small fishing boat bw
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02090✓
MAE
0.00612✓
birefnet-hrsod
MGE
0.03982
MAE
0.01117
Original photo: smiling man seaside sunset
Ground Truth alpha matte: smiling man seaside sunset
Alpha matte
birefnet-general alpha matte: smiling man seaside sunset
Alpha matte
birefnet-hrsod alpha matte: smiling man seaside sunset
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.00619✓
MAE
0.00277✓
birefnet-hrsod
MGE
0.01176
MAE
0.00436
Original photo: smiling woman seaside
Ground Truth alpha matte: smiling woman seaside
Alpha matte
birefnet-general alpha matte: smiling woman seaside
Alpha matte
birefnet-hrsod alpha matte: smiling woman seaside
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01810✓
MAE
0.00714✓
birefnet-hrsod
MGE
0.03169
MAE
0.01241
Original photo: spoked bike wheel
Ground Truth alpha matte: spoked bike wheel
Alpha matte
birefnet-general alpha matte: spoked bike wheel
Alpha matte
birefnet-hrsod alpha matte: spoked bike wheel
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03517✓
MAE
0.00648✓
birefnet-hrsod
MGE
0.04629
MAE
0.00984
Original photo: sprinter motion blur
Ground Truth alpha matte: sprinter motion blur
Alpha matte
birefnet-general alpha matte: sprinter motion blur
Alpha matte
birefnet-hrsod alpha matte: sprinter motion blur
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.02895
MAE
0.02783✓
birefnet-hrsod
MGE
0.02316✓
MAE
0.02950
Original photo: street dancer studio pose
Ground Truth alpha matte: street dancer studio pose
Alpha matte
birefnet-general alpha matte: street dancer studio pose
Alpha matte
birefnet-hrsod alpha matte: street dancer studio pose
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01442✓
MAE
0.00315✓
birefnet-hrsod
MGE
0.02309
MAE
0.00498
Original photo: street portrait man
Ground Truth alpha matte: street portrait man
Alpha matte
birefnet-general alpha matte: street portrait man
Alpha matte
birefnet-hrsod alpha matte: street portrait man
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01079✓
MAE
0.00372✓
birefnet-hrsod
MGE
0.01993
MAE
0.00674
Original photo: sunset field portrait
Ground Truth alpha matte: sunset field portrait
Alpha matte
birefnet-general alpha matte: sunset field portrait
Alpha matte
birefnet-hrsod alpha matte: sunset field portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01879✓
MAE
0.00851✓
birefnet-hrsod
MGE
0.02594
MAE
0.01077
Original photo: swan
Ground Truth alpha matte: swan
Alpha matte
birefnet-general alpha matte: swan
Alpha matte
birefnet-hrsod alpha matte: swan
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.00747✓
MAE
0.00115✓
birefnet-hrsod
MGE
0.02922
MAE
0.00526
Original photo: tabby cat portrait
Ground Truth alpha matte: tabby cat portrait
Alpha matte
birefnet-general alpha matte: tabby cat portrait
Alpha matte
birefnet-hrsod alpha matte: tabby cat portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04204✓
MAE
0.07583✓
birefnet-hrsod
MGE
0.06121
MAE
0.25267
Original photo: terrier dog mugshot
Ground Truth alpha matte: terrier dog mugshot
Alpha matte
birefnet-general alpha matte: terrier dog mugshot
Alpha matte
birefnet-hrsod alpha matte: terrier dog mugshot
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.09392
MAE
0.06015
birefnet-hrsod
MGE
0.05816✓
MAE
0.04968✓
Original photo: trigonometry notes whiteboard
Ground Truth alpha matte: trigonometry notes whiteboard
Alpha matte
birefnet-general alpha matte: trigonometry notes whiteboard
Alpha matte
birefnet-hrsod alpha matte: trigonometry notes whiteboard
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.17273✓
MAE
0.03358✓
birefnet-hrsod
MGE
0.40532
MAE
0.89601
Original photo: two bikes field
Ground Truth alpha matte: two bikes field
Alpha matte
birefnet-general alpha matte: two bikes field
Alpha matte
birefnet-hrsod alpha matte: two bikes field
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.07979
MAE
0.09417
birefnet-hrsod
MGE
0.06874✓
MAE
0.03261✓
Original photo: two gravel bikes park
Ground Truth alpha matte: two gravel bikes park
Alpha matte
birefnet-general alpha matte: two gravel bikes park
Alpha matte
birefnet-hrsod alpha matte: two gravel bikes park
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.09319✓
MAE
0.01831✓
birefnet-hrsod
MGE
0.13145
MAE
0.02954
Original photo: typography
Ground Truth alpha matte: typography
Alpha matte
birefnet-general alpha matte: typography
Alpha matte
birefnet-hrsod alpha matte: typography
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01951✓
MAE
0.00290✓
birefnet-hrsod
MGE
0.10039
MAE
0.86266
Original photo: venus
Ground Truth alpha matte: venus
Alpha matte
birefnet-general alpha matte: venus
Alpha matte
birefnet-hrsod alpha matte: venus
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03390✓
MAE
0.00917✓
birefnet-hrsod
MGE
0.09129
MAE
0.03098
Original photo: vinicius wiesehofer VqRTfOxHSYg
Ground Truth alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
birefnet-general alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
birefnet-hrsod alpha matte: vinicius wiesehofer VqRTfOxHSYg
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01230✓
MAE
0.01388✓
birefnet-hrsod
MGE
0.01240
MAE
0.01791

Photo by Vinicius Wiesehofer on Unsplash

Original photo: vino li J4JjsFJKhpI
Ground Truth alpha matte: vino li J4JjsFJKhpI
Alpha matte
birefnet-general alpha matte: vino li J4JjsFJKhpI
Alpha matte
birefnet-hrsod alpha matte: vino li J4JjsFJKhpI
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04915
MAE
0.06760✓
birefnet-hrsod
MGE
0.04828✓
MAE
0.09595
Original photo: white chess pieces tournament
Ground Truth alpha matte: white chess pieces tournament
Alpha matte
birefnet-general alpha matte: white chess pieces tournament
Alpha matte
birefnet-hrsod alpha matte: white chess pieces tournament
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04032✓
MAE
0.21379
birefnet-hrsod
MGE
0.04695
MAE
0.21011✓
Original photo: william randles H48cS 5xt7U
Ground Truth alpha matte: william randles H48cS 5xt7U
Alpha matte
birefnet-general alpha matte: william randles H48cS 5xt7U
Alpha matte
birefnet-hrsod alpha matte: william randles H48cS 5xt7U
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03049✓
MAE
0.02974✓
birefnet-hrsod
MGE
0.03239
MAE
0.03007
Original photo: windblown curly hair backpack
Ground Truth alpha matte: windblown curly hair backpack
Alpha matte
birefnet-general alpha matte: windblown curly hair backpack
Alpha matte
birefnet-hrsod alpha matte: windblown curly hair backpack
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.03339✓
MAE
0.01185✓
birefnet-hrsod
MGE
0.03707
MAE
0.02387
Original photo: windblown curly portrait
Ground Truth alpha matte: windblown curly portrait
Alpha matte
birefnet-general alpha matte: windblown curly portrait
Alpha matte
birefnet-hrsod alpha matte: windblown curly portrait
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04978✓
MAE
0.01930✓
birefnet-hrsod
MGE
0.05797
MAE
0.02682
Original photo: woman street portrait glasses
Ground Truth alpha matte: woman street portrait glasses
Alpha matte
birefnet-general alpha matte: woman street portrait glasses
Alpha matte
birefnet-hrsod alpha matte: woman street portrait glasses
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.01854✓
MAE
0.00954✓
birefnet-hrsod
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 GeneralBiRefNet HRSOD
AccessOpen weightsOpen weights
LicenseMITMIT
Commercial useAllowedAllowed
Runs onYour 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.png

BiRefNet HRSOD

Shell

pip install rembg
rembg i -m birefnet-hrsod input.jpg output.png

FAQ

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.