forked from nunchaku-ai/nunchaku
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (116 loc) · 2.51 KB
/
pyproject.toml
File metadata and controls
126 lines (116 loc) · 2.51 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"ninja",
"setuptools",
"torch>=2.7",
"wheel",
]
[project]
name = "nunchaku"
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",
"Programming Language :: Python :: 3.14",
]
dynamic = [ "version" ]
dependencies = [
"accelerate>=1.9",
"diffusers>=0.36",
"einops",
"huggingface-hub>=0.34",
"peft>=0.17",
"protobuf",
"sentencepiece",
"torchvision>=0.20",
"transformers>=4.54",
]
optional-dependencies.ci = [
"accelerate==1.9",
"cache-dit==1.1.9",
"controlnet-aux==0.0.10",
"datasets==3.6",
"diffusers==0.36",
"facexlib==0.3",
"huggingface-hub==0.34",
"image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git@e08ae3d",
"insightface==0.7.3",
"onnxruntime==1.22.1",
"opencv-python==4.11.0.86",
"peft==0.17",
"pytest==8.4.2",
"pytest-rerunfailures==16.0.1",
"timm==1.0.19",
"torchmetrics==1.8",
"transformers==4.55.2",
]
optional-dependencies.demo = [
"controlnet-aux",
"gradio==5.39",
"image-gen-aux @ git+https://github.com/asomoza/image_gen_aux.git",
"spaces",
]
optional-dependencies.dev = [
"cache-dit>=1.1.9",
"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",
"docutils<0.21",
"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",
]
[tool.setuptools.packages.find]
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
[tool.doc8]
max-line-length = 120
ignore-path = [ "docs/_build" ]
ignore = [ "D000", "D001" ]
[tool.rstcheck]
ignore_directives = [ "tabs" ]
ignore_messages = [ "ERROR/3", "INFO/1" ]