Views
No views yet
mlx-community/BiRefNet-fp16 is an fp16 MLX conversion
of ZhengPeng7/BiRefNet (MIT) — a Swin-L + ASPP-Deformable
foreground segmentation / matting model at 1024×1024, producing a single-channel soft-alpha matte
(white = foreground). The fast, general-purpose tier.mlx-birefnet-swift — the vendored BiRefNet
core plus a conformant MLXEngine matting ModelPackage:1import BiRefNet
2let pipeline = try BiRefNetPipeline.fromPretrained("model.safetensors", dtype: .float16) // inputSize 1024
3let matte = try pipeline(cgImage).maskCGImage() // source-resolution soft-alphabirefnet-convert (PyTorch NCHW → MLX NHWC;
754 → 687 tensors). Single-file model.safetensors. See also the higher-res tier
mlx-community/BiRefNet_HR-matting-fp16.