Views
No views yet
matte task. Predicts
a soft alpha matte at a fixed native 1024x1024..pt and pass its path as the weights argument (the checkpoint's quant manifest rebuilds the quantized structure at load time).1from libreyolo import LibreYOLO
2
3m = LibreYOLO("LibreFeyNobgl-matte-fp16.pt")
4res = m.predict("product.jpg")
5res[0].matte # (H, W) float alpha in [0, 1]
6res[0].save("cut.png") # transparent-background PNGquantize API
(fp16 (half-precision cast, float32 I/O contract; near-lossless, intended for GPU inference - on CPU use the fp32 default)), stored in the packed finalized format documented in
docs/quantization.md and docs/checkpoint_schema.md of the
LibreYOLO source repository.