BiRefNet General
Open weights · commercially permissiveLicense: MIT
BiRefNet HRSOD
Open weights · commercially permissiveLicense: MIT

birefnet-general vs birefnet-hrsod

Quantitative comparison: 34 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.04117 ✓0.05566
MAE (Overall Accuracy)0.01632 ✓0.03030
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.03911✓
MAE
0.00742✓
birefnet-hrsod
MGE
0.10666
MAE
0.03756
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.05151✓
MAE
0.02941✓
birefnet-hrsod
MGE
0.08378
MAE
0.12069
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.03935✓
MAE
0.00627✓
birefnet-hrsod
MGE
0.05336
MAE
0.00989
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.01441✓
MAE
0.00777✓
birefnet-hrsod
MGE
0.02760
MAE
0.01410
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.02280✓
MAE
0.00639✓
birefnet-hrsod
MGE
0.03619
MAE
0.01169
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.05248
MAE
0.01589✓
birefnet-hrsod
MGE
0.04905✓
MAE
0.01791
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.03986
MAE
0.01194
birefnet-hrsod
MGE
0.01962✓
MAE
0.00544✓
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.06897✓
MAE
0.01163✓
birefnet-hrsod
MGE
0.09296
MAE
0.01683
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.02118✓
MAE
0.00394✓
birefnet-hrsod
MGE
0.02913
MAE
0.00554
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.03558✓
MAE
0.01109✓
birefnet-hrsod
MGE
0.03945
MAE
0.01697
Original photo: cyclist motion blur field
Ground Truth alpha matte: cyclist motion blur field
Alpha matte
birefnet-general alpha matte: cyclist motion blur field
Alpha matte
birefnet-hrsod alpha matte: cyclist motion blur field
Alpha matte
Original
Ground Truth
birefnet-general
MGE
0.04585✓
MAE
0.00903✓
birefnet-hrsod
MGE
0.05330
MAE
0.01138
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.04642✓
MAE
0.00943✓
birefnet-hrsod
MGE
0.06630
MAE
0.01412
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.02089
MAE
0.00573
birefnet-hrsod
MGE
0.01989✓
MAE
0.00551✓
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.03183✓
MAE
0.00786✓
birefnet-hrsod
MGE
0.04531
MAE
0.01049
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.05580✓
MAE
0.01033✓
birefnet-hrsod
MGE
0.14535
MAE
0.05671
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.01899✓
MAE
0.00728✓
birefnet-hrsod
MGE
0.03191
MAE
0.01630
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.01820✓
MAE
0.01234✓
birefnet-hrsod
MGE
0.02268
MAE
0.01404
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.08594✓
MAE
0.02513✓
birefnet-hrsod
MGE
0.13722
MAE
0.11387
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.01814✓
MAE
0.00291✓
birefnet-hrsod
MGE
0.02933
MAE
0.00535
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.02291✓
MAE
0.00565✓
birefnet-hrsod
MGE
0.04154
MAE
0.00969
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.00578✓
MAE
0.00237✓
birefnet-hrsod
MGE
0.01345
MAE
0.00483
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.01608✓
MAE
0.00625✓
birefnet-hrsod
MGE
0.03087
MAE
0.01259
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.03751✓
MAE
0.00610✓
birefnet-hrsod
MGE
0.05176
MAE
0.00892
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.03350
MAE
0.02219✓
birefnet-hrsod
MGE
0.02781✓
MAE
0.02580
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.01732✓
MAE
0.00341✓
birefnet-hrsod
MGE
0.02812
MAE
0.00556
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.00992✓
MAE
0.00353✓
birefnet-hrsod
MGE
0.01795
MAE
0.00599
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.01705✓
MAE
0.00698✓
birefnet-hrsod
MGE
0.02646
MAE
0.00951
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.05592✓
MAE
0.07340✓
birefnet-hrsod
MGE
0.09121
MAE
0.23094
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.11893
MAE
0.06936
birefnet-hrsod
MGE
0.07902✓
MAE
0.06336✓
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.13372
MAE
0.09454
birefnet-hrsod
MGE
0.12241✓
MAE
0.04154✓
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.09324✓
MAE
0.01624✓
birefnet-hrsod
MGE
0.13557
MAE
0.02569
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.03565✓
MAE
0.01114✓
birefnet-hrsod
MGE
0.04528
MAE
0.02559
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.05451✓
MAE
0.01951✓
birefnet-hrsod
MGE
0.06522
MAE
0.03561
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.02037✓
MAE
0.01244✓
birefnet-hrsod
MGE
0.02651
MAE
0.02019

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).