Instructions to use marimona/ToonOut-CoreML with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- BiRefNet
How to use marimona/ToonOut-CoreML with BiRefNet:
# Option 1: use with transformers from transformers import AutoModelForImageSegmentation birefnet = AutoModelForImageSegmentation.from_pretrained("marimona/ToonOut-CoreML", trust_remote_code=True)# Option 2: use with BiRefNet # Install from https://github.com/ZhengPeng7/BiRefNet from models.birefnet import BiRefNet model = BiRefNet.from_pretrained("marimona/ToonOut-CoreML") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from marimona/ToonOut-CoreML: direct link, hf CLI and curl.
- Browser
- Download file 2.08 kB
-
https://huggingface.co/marimona/ToonOut-CoreML/resolve/main/README.md
- Command line
-
hf download hf://marimona/ToonOut-CoreML/README.md
-
curl -L -o README.md https://huggingface.co/marimona/ToonOut-CoreML/resolve/main/README.md
2.08 kB
| license: mit | |
| library_name: coreml | |
| pipeline_tag: image-segmentation | |
| base_model: joelseytre/toonout | |
| tags: | |
| - coreml | |
| - background-removal | |
| - image-segmentation | |
| - anime | |
| - birefnet | |
| - toonout | |
| # ToonOut Core ML | |
| Core ML conversions of [ToonOut](https://huggingface.co/joelseytre/toonout) — BiRefNet fine-tuned for background removal of anime characters — for on-device use on iOS 17 and later. | |
| These are unofficial conversions. All credit for the model goes to the original authors (see Credits). | |
| ## Variants | |
| | Folder | Weights | Size | IoU vs. PyTorch | | |
| | --- | --- | --- | --- | | |
| | `int8/` | 8-bit linear symmetric, per-channel (recommended) | about 237 MB | 0.9916 | | |
| | `fp16/` | 16-bit float | about 469 MB | 0.9989 | | |
| | `pal4/` | 4-bit k-means palettized | about 120 MB | 0.8813 | | |
| IoU was measured on a Mac against the original PyTorch model with four test images. `pal4` is the smallest but shows blocky noise in the mask. | |
| ## Files | |
| Each variant folder contains: | |
| - `ToonOut.mlpackage/` — the Core ML model package | |
| - `manifest.json` — every file in the package with its relative path, size in bytes and SHA-256 | |
| - `README.md`, `LICENSE` | |
| Download the files listed in `manifest.json` and check each SHA-256 before use. | |
| ## Input and output | |
| - Input: `image`, Float32 `(1, 3, 1024, 1024)`, RGB in 0...1 normalized with ImageNet mean and std | |
| - Output: `mask_logits`, Float32 `(1, 1, 1024, 1024)`, foreground mask logits (apply sigmoid) | |
| ## Source versions | |
| - ToonOut weights: `joelseytre/toonout` @ `cbf720eca394edcde66b861a8a8c20fbabe9c748` | |
| - BiRefNet architecture: `ZhengPeng7/BiRefNet` @ `e2bf8e4460fc8fa32bba5ea4d94b3233d367b0e4` | |
| ## Credits | |
| - ToonOut: Matteo Muratori, Joël Seytre (Kartoon AI). Paper: *ToonOut: Fine-tuned Background Removal for Anime Characters* (arXiv:2509.06839). MIT License. | |
| - Training data: [ToonOut Dataset](https://huggingface.co/datasets/joelseytre/toonout), CC-BY 4.0. | |
| - BiRefNet: Peng Zheng et al. ([ZhengPeng7/BiRefNet](https://github.com/ZhengPeng7/BiRefNet)). MIT License. | |
| ## License | |
| MIT. See [LICENSE](LICENSE). | |