69 lines
1.4 KiB
TOML
69 lines
1.4 KiB
TOML
[project]
|
|
name = "wdtagger"
|
|
version = "0.11.2"
|
|
description = "A simple and easy-to-use wrapper for the tagger model created by [SmilingWolf](https://github.com/SmilingWolf) which is specifically designed for tagging anime illustrations."
|
|
authors = [{ name = "Jianqi Pan", email = "jannchie@gmail.com" }]
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"huggingface-hub>=0.26.2",
|
|
"numpy<2",
|
|
"pandas>=2.2.3",
|
|
"pillow>=11.0.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest>=8.3.3", "pytest-benchmark>=5.1.0", "ruff>=0.8.0"]
|
|
|
|
|
|
[project.optional-dependencies]
|
|
cpu = ["torch>=2.5.1", "torchvision>=0.20.1", "timm>=1.0.11"]
|
|
gpu = ["torch>=2.5.1", "torchvision>=0.20.1", "timm>=1.0.11"]
|
|
|
|
[tool.ruff]
|
|
line-length = 140
|
|
select = ["ALL"]
|
|
|
|
ignore = [
|
|
"PGH",
|
|
"RUF003",
|
|
"BLE001",
|
|
"ERA001",
|
|
"FIX002",
|
|
"TD002",
|
|
"TD003",
|
|
"D",
|
|
"N812",
|
|
]
|
|
|
|
[tool.pyright]
|
|
|
|
[tool.uv]
|
|
conflicts = [[{ extra = "cpu" }, { extra = "gpu" }]]
|
|
package = true
|
|
|
|
[tool.uv.sources]
|
|
torch = [
|
|
{ index = "torch-cpu", extra = "cpu" },
|
|
{ index = "torch-gpu", extra = "gpu" },
|
|
]
|
|
|
|
torchvision = [
|
|
{ index = "torch-cpu", extra = "cpu" },
|
|
{ index = "torch-gpu", extra = "gpu" },
|
|
]
|
|
|
|
[[tool.uv.index]]
|
|
name = "torch-cpu"
|
|
url = "https://download.pytorch.org/whl/cpu"
|
|
explicit = true
|
|
|
|
[[tool.uv.index]]
|
|
name = "torch-gpu"
|
|
url = "https://download.pytorch.org/whl/cu124"
|
|
explicit = true
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|