forked from SociallyIneptWeeb/AICoverGen
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
221 lines (202 loc) · 4.6 KB
/
pyproject.toml
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ultimate-rvc"
version = "0.1.23"
description = "Ultimate RVC"
readme = "README.md"
requires-python = "==3.12.*"
dependencies = [
# General
"lib==4.0.0",
#Validation
"pydantic==2.9.2",
# CLI
"typer==0.12.5",
# Networking
"requests==2.32.3",
"yt_dlp==2024.11.4",
# TODO add these later
# "deemix",
# "wget",
# "flask",
# "beautifulsoup4",
# "pypresence",
# Data science
"numpy==1.26.4",
"scipy==1.14.1",
"matplotlib==3.9.2",
"tqdm==4.66.6",
"gradio==4.44.1",
# Machine learning
"torch==2.4.1+cu124",
"torchaudio==2.4.1+cu124",
"torchcrepe==0.0.23",
"fairseq-fixed==0.12.3.1",
"faiss-cpu==1.9.0",
"tensorboardX==2.6.2.2",
# TODO add these later
# "tensorboard",
# "torchfcpe",
# "local-attention",
# "libf0",
# "einops",
# "numba; sys_platform == 'linux'",
# "numba==0.57.0; sys_platform == 'darwin' or sys_platform == 'win32'",
# Audio
"static-ffmpeg==2.7",
"static-sox==1.0.1",
"typed-ffmpeg==2.1.0",
"soundfile==0.12.1",
"librosa==0.10.2",
"sox==1.5.0",
"pydub==0.25.1",
"pydub-stubs==0.25.1.2",
"pedalboard==0.9.16",
"audio-separator[gpu]==0.24.1",
"praat-parselmouth==0.4.5",
"pyworld-fixed==0.3.8",
"diffq==0.2.4"
# TODO add the later
# "noisereduce",
# "audio_upscaler==0.1.4",
# "edge-tts==6.1.9",
# "ffmpeg-python>=0.2.0",
# "ffmpy==0.3.1"
]
[project.scripts]
urvc = "ultimate_rvc.cli.main:app"
urvc-web = "ultimate_rvc.web.main:app_wrapper"
[tool.uv]
environments = ["sys_platform == 'win32'", "sys_platform == 'linux'"]
cache-dir = "./uv/cache"
compile-bytecode = true
[tool.uv.sources]
torch = { index = "torch-cu124"}
torchaudio = { index = "torch-cu124"}
diffq = { url = "https://huggingface.co/JackismyShephard/ultimate-rvc/resolve/main/diffq-0.2.4-cp312-cp312-win_amd64.whl", marker = "sys_platform == 'win32'"}
[[tool.uv.index]]
name = "torch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true
[tool.pyright]
stubPath = "src/ultimate_rvc/stubs"
pythonVersion = "3.12"
pythonPlatform = "All"
typeCheckingMode = "strict"
ignore = ["**/.venv"]
exclude = ["./uv"]
[tool.black]
target-version = ['py312']
preview = true
enable-unstable-feature = ["string_processing"]
[tool.ruff]
target-version = "py312"
fix = true
required-version = ">=0.5.7"
[tool.ruff.format]
docstring-code-format = true
preview = true
[tool.ruff.lint]
select = ["ALL"]
extend-select = ["I"]
ignore = [
# Ignore missing blank before between class name and docstring
"D203",
# Do not require a description after summary line in docstring
"D205",
# Do not require summary line to be located on first physical line of docstring
"D212",
# Do not require docstring section names to end with colon
"D416",
# Ignore TODO notes
"FIX002",
"TD002",
"TD003",
"TD004",
# Ignore missing copyright notice
"CPY001",
# Ignore function signatures with too many arguments
"PLR0913",
# ignore function signatures with too many positional arguments
"PLR0917",
# Ignore boolean positional argument in function signature
"FBT002",
"FBT001",
]
unfixable = ["F401"]
preview = true
[tool.ruff.lint.flake8-annotations]
#ignore-fully-untyped = true
[tool.ruff.lint.isort]
relative-imports-order = "closest-to-furthest"
section-order = [
"future",
"typing",
"standard-library",
"third-party",
"networking",
"validation",
"data-science",
"machine-learning",
"audio",
"cli",
"first-party",
"ultimate_rvc",
"local-folder",
]
[tool.ruff.lint.isort.sections]
"typing" = ["typing", "typing_extensions"]
"networking" = [
"requests",
"yt_dlp",
"deemix",
"wget",
"flask",
"beautifulsoup4",
"pypresence",
]
"validation" = ["pydantic"]
"data-science" = [
"numpy",
"scipy",
"matplotlib",
"tqdm",
"pandas",
"gradio"
]
"machine-learning" = [
"torch",
"torchaudio",
"torchcrepe",
"fairseq",
"faiss",
"tensorboard",
"torchfcpe",
"local_attention",
"libf0",
"einops",
"numba",
]
"audio" = [
"static_ffmpeg",
"static_sox",
"ffmpeg",
"soundfile",
"librosa",
"sox",
"pydub",
"pedalboard",
"audio_separator",
"parselmouth",
"pyworld",
"noisereduce",
"audio_upscaler",
"edge_tts",
"ffmpy",
]
"cli" = ["typer", "rich"]
"ultimate_rvc" = ["ultimate_rvc"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 72