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