08378e57f8
Add AnimeSegSegmenter (skytnt/anime-seg ISNet ONNX via onnxruntime, no remote
code) and a make_segmenter factory selected by SegmentationSettings.backend
("birefnet" | "anime-seg"). The ONNX output is already 0..1, so it slots into the
same soft-mask interface BiRefNetSegmenter uses.
On the anime samples anime-seg recovers more and more-coherent hair wisps than
BiRefNet (TestImage2 shoulder rescue: added px 1886 -> 3278, largest connected
component 147 -> 454), as expected from an anime-trained model. Default backend
stays birefnet.
Adds onnxruntime to requirements.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
180 B
Plaintext
21 lines
180 B
Plaintext
opencv-python
|
|
pillow
|
|
numpy
|
|
scipy
|
|
scikit-image
|
|
pymatting
|
|
torch
|
|
torchvision
|
|
transformers
|
|
accelerate
|
|
safetensors
|
|
huggingface_hub
|
|
timm
|
|
einops
|
|
kornia
|
|
onnxruntime
|
|
tqdm
|
|
typer
|
|
rich
|
|
PyYAML
|