pyproject.toml 2.46 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
  "accelerate>=1.9",
  "diffusers>=0.35.1",
  "einops",
  "huggingface-hub>=0.34",
  "peft>=0.17",
  "protobuf",
  "sentencepiece",
  "torchvision>=0.20",
Muyang Li's avatar
Muyang Li committed
32
  "transformers>=4.54,<4.57",
33
34
]
optional-dependencies.ci = [
Muyang Li's avatar
Muyang Li committed
35
  "accelerate==1.9",
36
37
  "controlnet-aux==0.0.10",
  "datasets==3.6",
Muyang Li's avatar
Muyang Li committed
38
  "diffusers @ git+https://github.com/huggingface/diffusers@041501a",
39
  "facexlib==0.3",
Muyang Li's avatar
Muyang Li committed
40
  "huggingface-hub==0.34",
Muyang Li's avatar
Muyang Li committed
41
  "image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git@e08ae3d",
42
43
44
  "insightface==0.7.3",
  "onnxruntime==1.22.1",
  "opencv-python==4.11.0.86",
Muyang Li's avatar
Muyang Li committed
45
  "peft==0.17",
46
47
48
49
  "pytest==8.4.2",
  "pytest-rerunfailures==16.0.1",
  "timm==1.0.19",
  "torchmetrics==1.8",
Muyang Li's avatar
Muyang Li committed
50
  "transformers==4.54",
51
]
Muyang Li's avatar
Muyang Li committed
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
96
97
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
98
99
100
]

[tool.setuptools.packages.find]
101
102
103
104
105
106
107
108
109
110
111
112
113
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
114
115
116

[tool.doc8]
max-line-length = 120
117
118
ignore-path = [ "docs/_build" ]
ignore = [ "D000", "D001" ]
119
120

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