ToonOut: Fine-tuned Background-Removal for Anime Characters
Paper โข 2509.06839 โข Published
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")Core ML conversions of 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).
| 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.
Each variant folder contains:
ToonOut.mlpackage/ โ the Core ML model packagemanifest.json โ every file in the package with its relative path, size in bytes and SHA-256README.md, LICENSEDownload the files listed in manifest.json and check each SHA-256 before use.
image, Float32 (1, 3, 1024, 1024), RGB in 0...1 normalized with ImageNet mean and stdmask_logits, Float32 (1, 1, 1024, 1024), foreground mask logits (apply sigmoid)joelseytre/toonout @ cbf720eca394edcde66b861a8a8c20fbabe9c748ZhengPeng7/BiRefNet @ e2bf8e4460fc8fa32bba5ea4d94b3233d367b0e4MIT. See LICENSE.