nevreal commited on
Commit
56291a9
·
verified ·
1 Parent(s): fbbfaf0

Delete tools/dlmodels.bat

Browse files
Files changed (1) hide show
  1. tools/dlmodels.bat +0 -362
tools/dlmodels.bat DELETED
@@ -1,362 +0,0 @@
1
- @echo off && chcp 65001
2
-
3
- echo working dir is %cd%
4
- echo downloading requirement aria2 check.
5
- echo=
6
- dir /a:d/b | findstr "aria2" > flag.txt
7
- findstr "aria2" flag.txt >nul
8
- if %errorlevel% ==0 (
9
- echo aria2 checked.
10
- echo=
11
- ) else (
12
- echo failed. please downloading aria2 from webpage!
13
- echo unzip it and put in this directory!
14
- timeout /T 5
15
- start https://github.com/aria2/aria2/releases/tag/release-1.36.0
16
- echo=
17
- goto end
18
- )
19
-
20
- echo envfiles checking start.
21
- echo=
22
-
23
- for /f %%x in ('findstr /i /c:"aria2" "flag.txt"') do (set aria2=%%x)&goto endSch
24
- :endSch
25
-
26
- set d32=f0D32k.pth
27
- set d40=f0D40k.pth
28
- set d48=f0D48k.pth
29
- set g32=f0G32k.pth
30
- set g40=f0G40k.pth
31
- set g48=f0G48k.pth
32
-
33
- set d40v2=f0D40k.pth
34
- set g40v2=f0G40k.pth
35
-
36
- set dld32=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D32k.pth
37
- set dld40=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D40k.pth
38
- set dld48=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D48k.pth
39
- set dlg32=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G32k.pth
40
- set dlg40=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G40k.pth
41
- set dlg48=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G48k.pth
42
-
43
- set dld40v2=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D40k.pth
44
- set dlg40v2=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G40k.pth
45
-
46
- set hp2_all=HP2_all_vocals.pth
47
- set hp3_all=HP3_all_vocals.pth
48
- set hp5_only=HP5_only_main_vocal.pth
49
- set VR_DeEchoAggressive=VR-DeEchoAggressive.pth
50
- set VR_DeEchoDeReverb=VR-DeEchoDeReverb.pth
51
- set VR_DeEchoNormal=VR-DeEchoNormal.pth
52
- set onnx_dereverb=vocals.onnx
53
-
54
- set dlhp2_all=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP2_all_vocals.pth
55
- set dlhp3_all=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP3_all_vocals.pth
56
- set dlhp5_only=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP5_only_main_vocal.pth
57
- set dlVR_DeEchoAggressive=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/VR-DeEchoAggressive.pth
58
- set dlVR_DeEchoDeReverb=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/VR-DeEchoDeReverb.pth
59
- set dlVR_DeEchoNormal=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/VR-DeEchoNormal.pth
60
- set dlonnx_dereverb=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/onnx_dereverb_By_FoxJoy/vocals.onnx
61
-
62
- set hb=hubert_base.pt
63
-
64
- set dlhb=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt
65
-
66
- set rmvpe=rmvpe.pt
67
- set dlrmvpe=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt
68
-
69
- echo dir check start.
70
- echo=
71
-
72
- if exist "%~dp0assets\pretrained" (
73
- echo dir .\assets\pretrained checked.
74
- ) else (
75
- echo failed. generating dir .\assets\pretrained.
76
- mkdir pretrained
77
- )
78
- if exist "%~dp0assets\pretrained_v2" (
79
- echo dir .\assets\pretrained_v2 checked.
80
- ) else (
81
- echo failed. generating dir .\assets\pretrained_v2.
82
- mkdir pretrained_v2
83
- )
84
- if exist "%~dp0assets\uvr5_weights" (
85
- echo dir .\assets\uvr5_weights checked.
86
- ) else (
87
- echo failed. generating dir .\assets\uvr5_weights.
88
- mkdir uvr5_weights
89
- )
90
- if exist "%~dp0assets\uvr5_weights\onnx_dereverb_By_FoxJoy" (
91
- echo dir .\assets\uvr5_weights\onnx_dereverb_By_FoxJoy checked.
92
- ) else (
93
- echo failed. generating dir .\assets\uvr5_weights\onnx_dereverb_By_FoxJoy.
94
- mkdir uvr5_weights\onnx_dereverb_By_FoxJoy
95
- )
96
-
97
- echo=
98
- echo dir check finished.
99
-
100
- echo=
101
- echo required files check start.
102
-
103
- echo checking D32k.pth
104
- if exist "%~dp0assets\pretrained\D32k.pth" (
105
- echo D32k.pth in .\assets\pretrained checked.
106
- echo=
107
- ) else (
108
- echo failed. starting download from huggingface.
109
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D32k.pth -d %~dp0assets\pretrained -o D32k.pth
110
- if exist "%~dp0assets\pretrained\D32k.pth" (echo download successful.) else (echo please try again!
111
- echo=)
112
- )
113
- echo checking D40k.pth
114
- if exist "%~dp0assets\pretrained\D40k.pth" (
115
- echo D40k.pth in .\assets\pretrained checked.
116
- echo=
117
- ) else (
118
- echo failed. starting download from huggingface.
119
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D40k.pth -d %~dp0assets\pretrained -o D40k.pth
120
- if exist "%~dp0assets\pretrained\D40k.pth" (echo download successful.) else (echo please try again!
121
- echo=)
122
- )
123
- echo checking D40k.pth
124
- if exist "%~dp0assets\pretrained_v2\D40k.pth" (
125
- echo D40k.pth in .\assets\pretrained_v2 checked.
126
- echo=
127
- ) else (
128
- echo failed. starting download from huggingface.
129
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D40k.pth -d %~dp0assets\pretrained_v2 -o D40k.pth
130
- if exist "%~dp0assets\pretrained_v2\D40k.pth" (echo download successful.) else (echo please try again!
131
- echo=)
132
- )
133
- echo checking D48k.pth
134
- if exist "%~dp0assets\pretrained\D48k.pth" (
135
- echo D48k.pth in .\assets\pretrained checked.
136
- echo=
137
- ) else (
138
- echo failed. starting download from huggingface.
139
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D48k.pth -d %~dp0assets\pretrained -o D48k.pth
140
- if exist "%~dp0assets\pretrained\D48k.pth" (echo download successful.) else (echo please try again!
141
- echo=)
142
- )
143
- echo checking G32k.pth
144
- if exist "%~dp0assets\pretrained\G32k.pth" (
145
- echo G32k.pth in .\assets\pretrained checked.
146
- echo=
147
- ) else (
148
- echo failed. starting download from huggingface.
149
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G32k.pth -d %~dp0assets\pretrained -o G32k.pth
150
- if exist "%~dp0assets\pretrained\G32k.pth" (echo download successful.) else (echo please try again!
151
- echo=)
152
- )
153
- echo checking G40k.pth
154
- if exist "%~dp0assets\pretrained\G40k.pth" (
155
- echo G40k.pth in .\assets\pretrained checked.
156
- echo=
157
- ) else (
158
- echo failed. starting download from huggingface.
159
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G40k.pth -d %~dp0assets\pretrained -o G40k.pth
160
- if exist "%~dp0assets\pretrained\G40k.pth" (echo download successful.) else (echo please try again!
161
- echo=)
162
- )
163
- echo checking G40k.pth
164
- if exist "%~dp0assets\pretrained_v2\G40k.pth" (
165
- echo G40k.pth in .\assets\pretrained_v2 checked.
166
- echo=
167
- ) else (
168
- echo failed. starting download from huggingface.
169
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G40k.pth -d %~dp0assets\pretrained_v2 -o G40k.pth
170
- if exist "%~dp0assets\pretrained_v2\G40k.pth" (echo download successful.) else (echo please try again!
171
- echo=)
172
- )
173
- echo checking G48k.pth
174
- if exist "%~dp0assets\pretrained\G48k.pth" (
175
- echo G48k.pth in .\assets\pretrained checked.
176
- echo=
177
- ) else (
178
- echo failed. starting download from huggingface.
179
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G48k.pth -d %~dp0assets\pretrained -o G48k.pth
180
- if exist "%~dp0assets\pretrained\G48k.pth" (echo download successful.) else (echo please try again!
181
- echo=)
182
- )
183
-
184
- echo checking %d32%
185
- if exist "%~dp0assets\pretrained\%d32%" (
186
- echo %d32% in .\assets\pretrained checked.
187
- echo=
188
- ) else (
189
- echo failed. starting download from huggingface.
190
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dld32% -d %~dp0assets\pretrained -o %d32%
191
- if exist "%~dp0assets\pretrained\%d32%" (echo download successful.) else (echo please try again!
192
- echo=)
193
- )
194
- echo checking %d40%
195
- if exist "%~dp0assets\pretrained\%d40%" (
196
- echo %d40% in .\assets\pretrained checked.
197
- echo=
198
- ) else (
199
- echo failed. starting download from huggingface.
200
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dld40% -d %~dp0assets\pretrained -o %d40%
201
- if exist "%~dp0assets\pretrained\%d40%" (echo download successful.) else (echo please try again!
202
- echo=)
203
- )
204
- echo checking %d40v2%
205
- if exist "%~dp0assets\pretrained_v2\%d40v2%" (
206
- echo %d40v2% in .\assets\pretrained_v2 checked.
207
- echo=
208
- ) else (
209
- echo failed. starting download from huggingface.
210
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dld40v2% -d %~dp0assets\pretrained_v2 -o %d40v2%
211
- if exist "%~dp0assets\pretrained_v2\%d40v2%" (echo download successful.) else (echo please try again!
212
- echo=)
213
- )
214
- echo checking %d48%
215
- if exist "%~dp0assets\pretrained\%d48%" (
216
- echo %d48% in .\assets\pretrained checked.
217
- echo=
218
- ) else (
219
- echo failed. starting download from huggingface.
220
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dld48% -d %~dp0assets\pretrained -o %d48%
221
- if exist "%~dp0assets\pretrained\%d48%" (echo download successful.) else (echo please try again!
222
- echo=)
223
- )
224
- echo checking %g32%
225
- if exist "%~dp0assets\pretrained\%g32%" (
226
- echo %g32% in .\assets\pretrained checked.
227
- echo=
228
- ) else (
229
- echo failed. starting download from huggingface.
230
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlg32% -d %~dp0assets\pretrained -o %g32%
231
- if exist "%~dp0assets\pretrained\%g32%" (echo download successful.) else (echo please try again!
232
- echo=)
233
- )
234
- echo checking %g40%
235
- if exist "%~dp0assets\pretrained\%g40%" (
236
- echo %g40% in .\assets\pretrained checked.
237
- echo=
238
- ) else (
239
- echo failed. starting download from huggingface.
240
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlg40% -d %~dp0assets\pretrained -o %g40%
241
- if exist "%~dp0assets\pretrained\%g40%" (echo download successful.) else (echo please try again!
242
- echo=)
243
- )
244
- echo checking %g40v2%
245
- if exist "%~dp0assets\pretrained_v2\%g40v2%" (
246
- echo %g40v2% in .\assets\pretrained_v2 checked.
247
- echo=
248
- ) else (
249
- echo failed. starting download from huggingface.
250
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlg40v2% -d %~dp0assets\pretrained_v2 -o %g40v2%
251
- if exist "%~dp0assets\pretrained_v2\%g40v2%" (echo download successful.) else (echo please try again!
252
- echo=)
253
- )
254
- echo checking %g48%
255
- if exist "%~dp0assets\pretrained\%g48%" (
256
- echo %g48% in .\assets\pretrained checked.
257
- echo=
258
- ) else (
259
- echo failed. starting download from huggingface.
260
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlg48% -d %~dp0assets\pretrained -o %g48%
261
- if exist "%~dp0assets\pretrained\%g48%" (echo download successful.) else (echo please try again!
262
- echo=)
263
- )
264
-
265
- echo checking %hp2_all%
266
- if exist "%~dp0assets\uvr5_weights\%hp2_all%" (
267
- echo %hp2_all% in .\assets\uvr5_weights checked.
268
- echo=
269
- ) else (
270
- echo failed. starting download from huggingface.
271
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlhp2_all% -d %~dp0assets\uvr5_weights -o %hp2_all%
272
- if exist "%~dp0assets\uvr5_weights\%hp2_all%" (echo download successful.) else (echo please try again!
273
- echo=)
274
- )
275
- echo checking %hp3_all%
276
- if exist "%~dp0assets\uvr5_weights\%hp3_all%" (
277
- echo %hp3_all% in .\assets\uvr5_weights checked.
278
- echo=
279
- ) else (
280
- echo failed. starting download from huggingface.
281
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlhp3_all% -d %~dp0assets\uvr5_weights -o %hp3_all%
282
- if exist "%~dp0assets\uvr5_weights\%hp3_all%" (echo download successful.) else (echo please try again!
283
- echo=)
284
- )
285
- echo checking %hp5_only%
286
- if exist "%~dp0assets\uvr5_weights\%hp5_only%" (
287
- echo %hp5_only% in .\assets\uvr5_weights checked.
288
- echo=
289
- ) else (
290
- echo failed. starting download from huggingface.
291
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlhp5_only% -d %~dp0assets\uvr5_weights -o %hp5_only%
292
- if exist "%~dp0assets\uvr5_weights\%hp5_only%" (echo download successful.) else (echo please try again!
293
- echo=)
294
- )
295
- echo checking %VR_DeEchoAggressive%
296
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoAggressive%" (
297
- echo %VR_DeEchoAggressive% in .\assets\uvr5_weights checked.
298
- echo=
299
- ) else (
300
- echo failed. starting download from huggingface.
301
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlVR_DeEchoAggressive% -d %~dp0assets\uvr5_weights -o %VR_DeEchoAggressive%
302
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoAggressive%" (echo download successful.) else (echo please try again!
303
- echo=)
304
- )
305
- echo checking %VR_DeEchoDeReverb%
306
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoDeReverb%" (
307
- echo %VR_DeEchoDeReverb% in .\assets\uvr5_weights checked.
308
- echo=
309
- ) else (
310
- echo failed. starting download from huggingface.
311
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlVR_DeEchoDeReverb% -d %~dp0assets\uvr5_weights -o %VR_DeEchoDeReverb%
312
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoDeReverb%" (echo download successful.) else (echo please try again!
313
- echo=)
314
- )
315
- echo checking %VR_DeEchoNormal%
316
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoNormal%" (
317
- echo %VR_DeEchoNormal% in .\assets\uvr5_weights checked.
318
- echo=
319
- ) else (
320
- echo failed. starting download from huggingface.
321
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlVR_DeEchoNormal% -d %~dp0assets\uvr5_weights -o %VR_DeEchoNormal%
322
- if exist "%~dp0assets\uvr5_weights\%VR_DeEchoNormal%" (echo download successful.) else (echo please try again!
323
- echo=)
324
- )
325
- echo checking %onnx_dereverb%
326
- if exist "%~dp0assets\uvr5_weights\onnx_dereverb_By_FoxJoy\%onnx_dereverb%" (
327
- echo %onnx_dereverb% in .\assets\uvr5_weights\onnx_dereverb_By_FoxJoy checked.
328
- echo=
329
- ) else (
330
- echo failed. starting download from huggingface.
331
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlonnx_dereverb% -d %~dp0assets\uvr5_weights\onnx_dereverb_By_FoxJoy -o %onnx_dereverb%
332
- if exist "%~dp0assets\uvr5_weights\onnx_dereverb_By_FoxJoy\%onnx_dereverb%" (echo download successful.) else (echo please try again!
333
- echo=)
334
- )
335
-
336
- echo checking %hb%
337
- if exist "%~dp0assets\hubert\%hb%" (
338
- echo %hb% in .\assets\hubert checked.
339
- echo=
340
- ) else (
341
- echo failed. starting download from huggingface.
342
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlhb% -d %~dp0assets\hubert\ -o %hb%
343
- if exist "%~dp0assets\hubert\%hb%" (echo download successful.) else (echo please try again!
344
- echo=)
345
- )
346
-
347
- echo checking %rmvpe%
348
- if exist "%~dp0assets\rmvpe\%rmvpe%" (
349
- echo %rmvpe% in .\assets\rmvpe checked.
350
- echo=
351
- ) else (
352
- echo failed. starting download from huggingface.
353
- %~dp0%aria2%\aria2c --console-log-level=error -c -x 16 -s 16 -k 1M %dlrmvpe% -d %~dp0assets\rmvpe\ -o %rmvpe%
354
- if exist "%~dp0assets\rmvpe\%rmvpe%" (echo download successful.) else (echo please try again!
355
- echo=)
356
- )
357
-
358
- echo required files check finished.
359
- echo envfiles check complete.
360
- pause
361
- :end
362
- del flag.txt