Views
No views yet
matte task. It
predicts a soft alpha matte at a fixed native 1024x1024 resolution.1from libreyolo import LibreYOLO
2
3model = LibreYOLO("LibreBEN2b-matte.pt")
4result = model.predict("product.jpg")
5result[0].matte.array # (H, W) float alpha in [0, 1]
6result[0].save("cut.png") # transparent-background PNG2c99a5da477b5523585bfa5c893888a6e818a8f6, using the released checkpoint from
PramaLLC/BEN2 at revision
e48a20765fb421d19dcdb0bf3cc61e802ca5ec8f.
Copyright (c) 2025 Prama LLC. Licensed under the MIT License.max_abs_diff == 0 for batch sizes 1 and 2. See
weights/convert_ben2_weights.py in the
LibreYOLO source repository.