Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: coreml
|
| 4 |
+
pipeline_tag: image-segmentation
|
| 5 |
+
base_model: ZhengPeng7/BiRefNet_lite
|
| 6 |
+
tags: [background-removal, coreml, mlpackage, macos]
|
| 7 |
+
---
|
| 8 |
+
# BiRefNet_lite — Core ML (KICK)
|
| 9 |
+
|
| 10 |
+
Core ML (ML Program, macOS 14+, fp16 compute) conversion of [ZhengPeng7/BiRefNet_lite](https://huggingface.co/ZhengPeng7/BiRefNet_lite)
|
| 11 |
+
used by KICK Studio on Mac for person cut-out. Same model and same pre/post-processing as
|
| 12 |
+
[onnx-community/BiRefNet_lite-ONNX](https://huggingface.co/onnx-community/BiRefNet_lite-ONNX).
|
| 13 |
+
|
| 14 |
+
`birefnet-lite-1024-fp16-kick-coreml.zip` contains `birefnet.mlpackage`:
|
| 15 |
+
|
| 16 |
+
- 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)
|
| 17 |
+
- output `logits`: float32 1×1×1024×1024, final prediction logits; alpha = sigmoid(logits)
|
| 18 |
+
|
| 19 |
+
`torchvision.ops.deform_conv2d` (decoder ASPPDeformable) was rewritten with `grid_sample` (bilinear, zero padding,
|
| 20 |
+
align_corners=True, with modulation mask) before tracing; it matches the original PyTorch model numerically.
|
| 21 |
+
|
| 22 |
+
## License and credit
|
| 23 |
+
|
| 24 |
+
BiRefNet by Peng Zheng et al. — https://github.com/ZhengPeng7/BiRefNet — MIT License (see `LICENSE`). This conversion is
|
| 25 |
+
distributed under the same MIT License.
|