Files
vnassets/pyproject.toml
Michele Rossi 8a11325b2f vnassets/background: add bg removal via rembg + isnet-anime
rembg with ONNX Runtime on CPU was chosen over BiRefNet: the latter
requires deform_conv2d which crashes on ROCm bfloat16 and runs at 40s
in float32. rembg delivers 0.23s per 1024x1024 image, no GPU deps,
and isnet-anime is trained specifically on anime images — exactly the
target domain.

CLI and session API both support single-image and batch (plural-first)
modes, reusing one model session across files.
2026-07-08 11:20:36 +02:00

28 lines
456 B
TOML

[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"
[project]
name = "vnassets"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"torch",
"diffusers",
"transformers",
"accelerate",
"safetensors",
"pillow",
"pyyaml",
"click",
"compel",
"rembg",
"onnxruntime",
]
[tool.setuptools.packages.find]
exclude = ["models*"]
[project.scripts]
vnasset = "vnassets.cli:main"