add pyproject and reqs
Browse files- README.md +1 -1
- pyproject.toml +94 -0
- requirements.txt +16 -0
README.md
CHANGED
|
@@ -9,7 +9,7 @@ app_file: app.py
|
|
| 9 |
pinned: true
|
| 10 |
license: MIT
|
| 11 |
preload_from_hub:
|
| 12 |
-
- SmilingWolf/wd-vit-tagger-v3 model.
|
| 13 |
models:
|
| 14 |
- SmilingWolf/wd-vit-tagger-v3
|
| 15 |
---
|
|
|
|
| 9 |
pinned: true
|
| 10 |
license: MIT
|
| 11 |
preload_from_hub:
|
| 12 |
+
- SmilingWolf/wd-vit-tagger-v3 model.safetensors,config.json,sw_jax_cv_config.json,selected_tags.csv
|
| 13 |
models:
|
| 14 |
- SmilingWolf/wd-vit-tagger-v3
|
| 15 |
---
|
pyproject.toml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "wd-tagger-heatmap"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
authors = [
|
| 5 |
+
{ name = "Andi Powers-Holmes", email = "[email protected]" },
|
| 6 |
+
]
|
| 7 |
+
maintainers = [
|
| 8 |
+
{ name = "Andi Powers-Holmes", email = "[email protected]" },
|
| 9 |
+
]
|
| 10 |
+
description = "wd-tagger-heatmap Gradio Space"
|
| 11 |
+
readme = "README.md"
|
| 12 |
+
requires-python = ">=3.9, <3.11"
|
| 13 |
+
keywords = [
|
| 14 |
+
"deep-learning",
|
| 15 |
+
"machine-learning",
|
| 16 |
+
"pytorch",
|
| 17 |
+
]
|
| 18 |
+
license = { file = "LICENSE.md" }
|
| 19 |
+
classifiers = [
|
| 20 |
+
"Programming Language :: Python :: 3",
|
| 21 |
+
"License :: OSI Approved :: MIT License",
|
| 22 |
+
]
|
| 23 |
+
dependencies = [
|
| 24 |
+
"colorcet",
|
| 25 |
+
"diffusers",
|
| 26 |
+
"gradio >=4.25.0, < 5.0.0",
|
| 27 |
+
"hf-transfer",
|
| 28 |
+
"huggingface-hub >= 0.14.0",
|
| 29 |
+
"matplotlib",
|
| 30 |
+
"numpy >= 1.23.5",
|
| 31 |
+
"opencv-contrib-python-headless",
|
| 32 |
+
"pandas >= 2.0.0",
|
| 33 |
+
"Pillow >= 9.5.0",
|
| 34 |
+
"rich",
|
| 35 |
+
"timm @ git+https://github.com/huggingface/pytorch-image-models@main#egg=timm",
|
| 36 |
+
"tokenizers",
|
| 37 |
+
"torch >= 2.1.0",
|
| 38 |
+
"torchvision",
|
| 39 |
+
"transformers",
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
[project.urls]
|
| 43 |
+
Repository = "https://huggingface.co/spaces/neggles/wd-tagger-heatmap"
|
| 44 |
+
|
| 45 |
+
[project.optional-dependencies]
|
| 46 |
+
dev = [
|
| 47 |
+
"ruff >=0.0.289",
|
| 48 |
+
"setuptools-scm >= 8.0.0",
|
| 49 |
+
"pre-commit >= 3.0.0", # remember to run `pre-commit install` after installing
|
| 50 |
+
"tabulate >= 0.8.9", # for inductor log prettyprinting
|
| 51 |
+
]
|
| 52 |
+
all = [
|
| 53 |
+
"wd-tagger-heatmap-space[dev]",
|
| 54 |
+
]
|
| 55 |
+
|
| 56 |
+
[build-system]
|
| 57 |
+
build-backend = "setuptools.build_meta"
|
| 58 |
+
requires = ["setuptools>=64", "wheel"]
|
| 59 |
+
|
| 60 |
+
[tool.setuptools.packages.find]
|
| 61 |
+
namespaces = true
|
| 62 |
+
where = ["."]
|
| 63 |
+
include = ["wd-tagger-heatmap"]
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
[tool.ruff]
|
| 67 |
+
line-length = 110
|
| 68 |
+
target-version = "py310"
|
| 69 |
+
extend-exclude = ["/usr/lib/*"]
|
| 70 |
+
|
| 71 |
+
[tool.ruff.lint]
|
| 72 |
+
ignore = [
|
| 73 |
+
"F841", # local variable assigned but never used
|
| 74 |
+
"F842", # local variable annotated but never used
|
| 75 |
+
"E501", # line too long - will be fixed in format
|
| 76 |
+
]
|
| 77 |
+
|
| 78 |
+
[tool.ruff.format]
|
| 79 |
+
quote-style = "double"
|
| 80 |
+
indent-style = "space"
|
| 81 |
+
line-ending = "auto"
|
| 82 |
+
skip-magic-trailing-comma = false
|
| 83 |
+
docstring-code-format = true
|
| 84 |
+
|
| 85 |
+
[tool.ruff.lint.isort]
|
| 86 |
+
combine-as-imports = true
|
| 87 |
+
force-wrap-aliases = true
|
| 88 |
+
known-first-party = ["tagger"]
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
[tool.pyright]
|
| 92 |
+
include = ["src/**"]
|
| 93 |
+
exclude = ["/usr/lib/**"]
|
| 94 |
+
stubPath = "./typings"
|
requirements.txt
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
colorcet
|
| 2 |
+
diffusers
|
| 3 |
+
gradio >=4.25.0, < 5.0.0
|
| 4 |
+
hf-transfer
|
| 5 |
+
huggingface-hub >= 0.14.0
|
| 6 |
+
matplotlib
|
| 7 |
+
numpy >= 1.23.5
|
| 8 |
+
opencv-contrib-python-headless
|
| 9 |
+
pandas >= 2.0.0
|
| 10 |
+
Pillow >= 9.5.0
|
| 11 |
+
rich
|
| 12 |
+
timm @ git+https://github.com/huggingface/pytorch-image-models@main#egg=timm
|
| 13 |
+
tokenizers
|
| 14 |
+
torch >= 2.1.0
|
| 15 |
+
torchvision
|
| 16 |
+
transformers
|