--- license: mit library_name: coreml pipeline_tag: image-segmentation base_model: ZhengPeng7/BiRefNet_lite tags: [background-removal, coreml, mlpackage, macos] --- # BiRefNet_lite — Core ML (KICK) Core ML (ML Program, macOS 14+, fp16 compute) conversion of [ZhengPeng7/BiRefNet_lite](https://huggingface.co/ZhengPeng7/BiRefNet_lite) used by KICK Studio on Mac for person cut-out. Same model and same pre/post-processing as [onnx-community/BiRefNet_lite-ONNX](https://huggingface.co/onnx-community/BiRefNet_lite-ONNX). `birefnet-lite-1024-fp16-kick-coreml.zip` contains `birefnet.mlpackage`: - input `input`: float32 1×3×1024×1024, RGB / 255, normalized with ImageNet mean (0.485, 0.456, 0.406) and std (0.229, 0.224, 0.225) - output `logits`: float32 1×1×1024×1024, final prediction logits; alpha = sigmoid(logits) `torchvision.ops.deform_conv2d` (decoder ASPPDeformable) was rewritten with `grid_sample` (bilinear, zero padding, align_corners=True, with modulation mask) before tracing; it matches the original PyTorch model numerically. ## License and credit BiRefNet by Peng Zheng et al. — https://github.com/ZhengPeng7/BiRefNet — MIT License (see `LICENSE`). This conversion is distributed under the same MIT License.