File size: 2,108 Bytes
83c4fa5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[project]
name = "wd-tagger-heatmap"
version = "0.1.0"
authors = [
  { name = "Andi Powers-Holmes", email = "aholmes@omnom.net" },
]
maintainers = [
  { name = "Andi Powers-Holmes", email = "aholmes@omnom.net" },
]
description = "wd-tagger-heatmap Gradio Space"
readme = "README.md"
requires-python = ">=3.9, <3.11"
keywords = [
  "deep-learning",
  "machine-learning",
  "pytorch",
]
license = { file = "LICENSE.md" }
classifiers = [
  "Programming Language :: Python :: 3",
  "License :: OSI Approved :: MIT License",
]
dependencies = [
  "colorcet",
  "diffusers",
  "gradio >=4.25.0, < 5.0.0",
  "hf-transfer",
  "huggingface-hub >= 0.14.0",
  "matplotlib",
  "numpy >= 1.23.5",
  "opencv-contrib-python-headless",
  "pandas >= 2.0.0",
  "Pillow >= 9.5.0",
  "rich",
  "timm @ git+https://github.com/huggingface/pytorch-image-models@main#egg=timm",
  "tokenizers",
  "torch >= 2.1.0",
  "torchvision",
  "transformers",
]

[project.urls]
Repository = "https://huggingface.co/spaces/neggles/wd-tagger-heatmap"

[project.optional-dependencies]
dev = [
  "ruff >=0.0.289",
  "setuptools-scm >= 8.0.0",
  "pre-commit >= 3.0.0",     # remember to run `pre-commit install` after installing
  "tabulate >= 0.8.9",       # for inductor log prettyprinting
]
all = [
  "wd-tagger-heatmap-space[dev]",
]

[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "wheel"]

[tool.setuptools.packages.find]
namespaces = true
where = ["."]
include = ["wd-tagger-heatmap"]


[tool.ruff]
line-length = 110
target-version = "py310"
extend-exclude = ["/usr/lib/*"]

[tool.ruff.lint]
ignore = [
  "F841", # local variable assigned but never used
  "F842", # local variable annotated but never used
  "E501", # line too long - will be fixed in format
]

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true

[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
known-first-party = ["tagger"]


[tool.pyright]
include = ["src/**"]
exclude = ["/usr/lib/**"]
stubPath = "./typings"