Views
No views yet
mlx-community/BiRefNet_HR-matting-fp16 is an
fp16 MLX conversion of ZhengPeng7/BiRefNet_HR-matting
(MIT) — the same Swin-L + ASPP-Deformable architecture run at 2048×2048 for the crispest dense-hair detail.
The high-resolution "best" matting tier (best all-rounder: crispest fine hair while retaining thin structures
like whiskers).mlx-birefnet-swift:1import BiRefNet
2var cfg = BiRefNetConfig.swinLargeDefault; cfg.inputSize = (2048, 2048)
3let pipeline = try BiRefNetPipeline.fromPretrained("model.safetensors", dtype: .float16, config: cfg)
4let matte = try pipeline(cgImage).maskCGImage() // source-resolution soft-alphabirefnet-convert. Single-file
model.safetensors. The fast tier is mlx-community/BiRefNet-fp16.