pyproject.toml 2.37 KB
Newer Older
1
2
[build-system]
build-backend = "setuptools.build_meta"
3

4
5
6
7
8
9
requires = [
  "ninja",
  "setuptools",
  "torch>=2.5",
  "wheel",
]
Hyunsung Lee's avatar
Hyunsung Lee committed
10

sxtyzhangzk's avatar
sxtyzhangzk committed
11
12
[project]
name = "nunchaku"
13
14
15
16
17
18
19
20
21
22
requires-python = ">=3.10"

classifiers = [
  "Programming Language :: Python :: 3 :: Only",
  "Programming Language :: Python :: 3.10",
  "Programming Language :: Python :: 3.11",
  "Programming Language :: Python :: 3.12",
  "Programming Language :: Python :: 3.13",
]
dynamic = [ "version" ]
sxtyzhangzk's avatar
sxtyzhangzk committed
23
dependencies = [
24
25
26
27
28
29
30
31
32
33
34
35
36
  "accelerate>=1.9",
  "diffusers>=0.35.1",
  "einops",
  "huggingface-hub>=0.34",
  "peft>=0.17",
  "protobuf",
  "sentencepiece",
  "torchvision>=0.20",
  "transformers>=4.53.3",
]
optional-dependencies.ci = [
  "controlnet-aux==0.0.10",
  "datasets==3.6",
37
  "diffusers @ git+https://github.com/huggingface/diffusers@a72bc0c",
38
39
40
41
42
43
44
45
46
  "facexlib==0.3",
  "image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git",
  "insightface==0.7.3",
  "onnxruntime==1.22.1",
  "opencv-python==4.11.0.86",
  "pytest==8.4.2",
  "pytest-rerunfailures==16.0.1",
  "timm==1.0.19",
  "torchmetrics==1.8",
47
]
Muyang Li's avatar
Muyang Li committed
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
optional-dependencies.demo = [
  "controlnet-aux",
  "gradio==5.39",
  "image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git",
  "spaces",
]
optional-dependencies.dev = [
  "controlnet-aux",
  "datasets<4",
  "facexlib",
  "image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git",
  "insightface",
  "onnxruntime",
  "opencv-python",
  "pre-commit",
  "pytest",
  "pytest-rerunfailures",
  "timm",
  "torchmetrics",
]
optional-dependencies.docs = [
  "breathe",
  "furo",
  "graphviz",
  "ipykernel",
  "jupyter",
  "myst-parser",
  "nbsphinx",
  "sphinx",
  "sphinx-book-theme",
  "sphinx-copybutton",
  "sphinx-rtd-theme",
  "sphinx-tabs",
  "sphinxawesome-theme",
  "sphinxcontrib-mermaid",
  "sphinxext-rediraffe",
]
optional-dependencies.full = [
  "controlnet-aux",
  "facexlib",
  "image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git",
  "insightface",
  "onnxruntime",
  "opencv-python",
  "timm",
Muyang Li's avatar
Muyang Li committed
94
95
96
]

[tool.setuptools.packages.find]
97
98
99
100
101
102
103
104
105
106
107
108
109
include = [ "nunchaku" ]

[tool.black]
line-length = 120
target-version = [ 'py311' ]

[tool.ruff]
line-length = 120

[tool.isort]
profile = "black"
known_first_party = [ "nunchaku" ]
line_length = 120
110
111
112

[tool.doc8]
max-line-length = 120
113
114
ignore-path = [ "docs/_build" ]
ignore = [ "D000", "D001" ]
115
116

[tool.rstcheck]
117
118
ignore_directives = [ "tabs" ]
ignore_messages = [ "ERROR/3", "INFO/1" ]