Kangarroar commited on
Commit
bd2a626
·
1 Parent(s): f0df26f

Delete go-applio-manager-recode.bat

Browse files
Files changed (1) hide show
  1. go-applio-manager-recode.bat +0 -322
go-applio-manager-recode.bat DELETED
@@ -1,322 +0,0 @@
1
- @echo off
2
- title Applio Installer
3
-
4
- ::: _ _ _____ _
5
- ::: /\ | (_) | __ \ | |
6
- ::: / \ _ __ _ __ | |_ ___ | |__) |___ ___ ___ __| | ___
7
- ::: / /\ \ | '_ \| '_ \| | |/ _ \ | _ // _ \/ __/ _ \ / _` |/ _ \
8
- ::: / ____ \| |_) | |_) | | | (_) | | | \ \ __/ (_| (_) | (_| | __/
9
- ::: /_/ \_\ .__/| .__/|_|_|\___/ |_| \_\___|\___\___/ \__,_|\___|
10
- ::: | | | |
11
- ::: |_| |_|
12
- :::
13
- :::
14
-
15
- setlocal
16
- set "branch=applio-recode"
17
- set "runtime=runtime-recode"
18
- set "repoUrl=https://github.com/IAHispano/Applio-RVC-Fork/archive/refs/heads/%branch%.zip"
19
- set "fixesFolder=fixes"
20
- set "localFixesPy=local_fixes.py"
21
- set "principal=%cd%"
22
- set "URL_BASE=https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main"
23
- set "URL_EXTRA=https://huggingface.co/IAHispano/applio/resolve/main"
24
-
25
- :menu
26
- for /f "delims=: tokens=*" %%A in ('findstr /b ":::" "%~f0"') do @echo(%%A
27
-
28
- echo [1] Reinstall Applio
29
- echo [2] Update Applio
30
- echo [3] Update Applio + Runtime
31
- echo.
32
-
33
- set /p choice=Select an option:
34
- set choice=%choice: =%
35
-
36
- if "%choice%"=="1" (
37
- cls
38
- echo Starting Applio Reinstaller...
39
- echo.
40
- goto reinstaller
41
- pause
42
- cls
43
- goto menu
44
-
45
- )
46
-
47
- if "%choice%"=="2" (
48
- cls
49
- echo Starting Applio Updater...
50
- echo.
51
- goto updater
52
- pause
53
- cls
54
- goto menu
55
- )
56
-
57
- if "%choice%"=="3" (
58
- cls
59
- echo Updating Applio + Runtime...
60
- echo.
61
- goto updaterRuntime
62
- pause
63
- cls
64
- goto menu
65
-
66
- )
67
-
68
- cls
69
- echo Invalid option. Please enter a number from 1 to 3.
70
- echo.
71
- echo Press 'Enter' to access the main menu...
72
- pause>nul
73
- cls
74
- goto menu
75
-
76
- :reinstaller
77
-
78
- echo WARNING: Remember to install Microsoft C++ Build Tools, Redistributable, Python, and Git before continuing.
79
- echo.
80
- echo Step-by-step guide: https://rentry.org/appliolocal
81
- echo Build Tools: https://aka.ms/vs/17/release/vs_BuildTools.exe
82
- echo Redistributable: https://aka.ms/vs/17/release/vc_redist.x64.exe
83
- echo Git: https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.2/Git-2.42.0.2-64-bit.exe
84
- echo Python: Add this route to the windows enviroment variables the user path variable: %principal%\runtime\Scripts
85
- echo.
86
- pause
87
- cls
88
-
89
- echo Downloading ZIP file...
90
- powershell -command "& { Invoke-WebRequest -Uri '%repoUrl%' -OutFile '%principal%\repo.zip' }"
91
- echo.
92
-
93
- echo Extracting ZIP file...
94
- powershell -command "& { Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory('%principal%\repo.zip', '%principal%') }"
95
- echo.
96
-
97
- echo Copying folder and file structure from subdirectory to main directory...
98
- robocopy "%principal%\Applio-RVC-Fork-%branch%" "%principal%" /E
99
- echo.
100
-
101
- echo Deleting contents of subdirectory (files and folders)...
102
- rmdir "%principal%\Applio-RVC-Fork-%branch%" /S /Q
103
- echo.
104
-
105
- echo Cleaning up...
106
- del "%principal%\repo.zip"
107
- echo.
108
- cls
109
-
110
- echo Proceeding to download the models...
111
- echo.
112
-
113
- echo WARNING: At this point, it's recommended to disable antivirus or firewall, as errors might occur when downloading pretrained models.
114
- pause
115
- cls
116
-
117
- echo Downloading models in the assets folder...
118
- cd "assets"
119
- echo.
120
- echo Downloading the "pretrained" folder...
121
- cd "pretrained"
122
- curl -LJO "%URL_BASE%/pretrained/D32k.pth"
123
- curl -LJO "%URL_BASE%/pretrained/D40k.pth"
124
- curl -LJO "%URL_BASE%/pretrained/D48k.pth"
125
- curl -LJO "%URL_BASE%/pretrained/G32k.pth"
126
- curl -LJO "%URL_BASE%/pretrained/G40k.pth"
127
- curl -LJO "%URL_BASE%/pretrained/G48k.pth"
128
- curl -LJO "%URL_BASE%/pretrained/f0D32k.pth"
129
- curl -LJO "%URL_BASE%/pretrained/f0D40k.pth"
130
- curl -LJO "%URL_BASE%/pretrained/f0D48k.pth"
131
- curl -LJO "%URL_BASE%/pretrained/f0G32k.pth"
132
- curl -LJO "%URL_BASE%/pretrained/f0G40k.pth"
133
- curl -LJO "%URL_BASE%/pretrained/f0G48k.pth"
134
- cd ".."
135
- echo.
136
- cls
137
-
138
- echo Downloading the "pretrained_v2" folder...
139
- cd "pretrained_v2"
140
- curl -LJO "%URL_BASE%/pretrained_v2/D32k.pth"
141
- curl -LJO "%URL_BASE%/pretrained_v2/D40k.pth"
142
- curl -LJO "%URL_BASE%/pretrained_v2/D48k.pth"
143
- curl -LJO "%URL_BASE%/pretrained_v2/G32k.pth"
144
- curl -LJO "%URL_BASE%/pretrained_v2/G40k.pth"
145
- curl -LJO "%URL_BASE%/pretrained_v2/G48k.pth"
146
- curl -LJO "%URL_BASE%/pretrained_v2/f0D32k.pth"
147
- curl -LJO "%URL_BASE%/pretrained_v2/f0D40k.pth"
148
- curl -LJO "%URL_BASE%/pretrained_v2/f0D48k.pth"
149
- curl -LJO "%URL_BASE%/pretrained_v2/f0G32k.pth"
150
- curl -LJO "%URL_BASE%/pretrained_v2/f0G40k.pth"
151
- curl -LJO "%URL_BASE%/pretrained_v2/f0G48k.pth"
152
- cd ".."
153
- echo.
154
- cls
155
-
156
- echo Downloading the hubert_base.pt file...
157
- cd "hubert"
158
- curl -LJO "%URL_BASE%/hubert_base.pt"
159
- cd ".."
160
- echo.
161
- cls
162
-
163
-
164
- echo Downloading the rmvpe.pt file...
165
- cd "rmvpe"
166
- curl -LJO "%URL_BASE%/rmvpe.pt"
167
- echo.
168
- cls
169
-
170
- echo Downloading the rmvpe.onnx file...
171
- curl -LJO "%URL_BASE%/rmvpe.onnx"
172
- cd ".."
173
- cd ".."
174
- echo.
175
- cls
176
-
177
- echo Downloading the rest of the large files
178
-
179
- echo Downloading the "uvr5_weights" folder...
180
- cd "uvr5_weights"
181
- curl -LJO "%URL_BASE%/uvr5_weights/HP2_all_vocals.pth"
182
- curl -LJO "%URL_BASE%/uvr5_weights/HP3_all_vocals.pth"
183
- curl -LJO "%URL_BASE%/uvr5_weights/HP5_only_main_vocal.pth"
184
- curl -LJO "%URL_BASE%/uvr5_weights/VR-DeEchoAggressive.pth"
185
- curl -LJO "%URL_BASE%/uvr5_weights/VR-DeEchoDeReverb.pth"
186
- curl -LJO "%URL_BASE%/uvr5_weights/VR-DeEchoNormal.pth"
187
- cd ".."
188
- echo.
189
- cls
190
-
191
- echo Downloading the ffmpeg.exe file...
192
- curl -LJO "%URL_BASE%/ffmpeg.exe"
193
- echo.
194
- cls
195
-
196
- echo Downloading the ffprobe.exe file...
197
- curl -LJO "%URL_BASE%/ffprobe.exe"
198
- echo.
199
- cls
200
-
201
- echo Downloading the runtime.zip file...
202
- curl -LJO "%URL_EXTRA%/%runtime%.zip"
203
- echo.
204
- cls
205
-
206
- echo Extracting the runtime.zip file, this might take a while...
207
- powershell -Command "Expand-Archive -Path '%runtime%.zip' -DestinationPath '.'"
208
- del %runtime%.zip
209
- echo.
210
- cls
211
-
212
- echo Downloads completed!
213
- echo.
214
-
215
- echo Checking if the local_fixes.py file exists in the Fixes folder...
216
- if exist "%fixesFolder%\%localFixesPy%" (
217
- echo Running the file...
218
- runtime\python.exe "%fixesFolder%\%localFixesPy%"
219
- ) else (
220
- echo The "%localFixesPy%" file was not found in the "Fixes" folder.
221
- )
222
- echo.
223
-
224
- echo Fixes Applied!
225
- echo.
226
-
227
- echo Applio has been reinstalled!
228
- echo.
229
- echo Press 'Enter' to access the main menu...
230
- pause>nul
231
- cls
232
- goto menu
233
-
234
-
235
- :updater
236
-
237
- echo Downloading the ZIP file...
238
- powershell -command "& { Invoke-WebRequest -Uri '%repoUrl%' -OutFile '%principal%\repo.zip' }"
239
- echo.
240
-
241
- echo Extracting ZIP file...
242
- powershell -command "& { Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory('%principal%\repo.zip', '%principal%') }"
243
- echo.
244
-
245
- echo Copying folder and file structure from subdirectory to main directory...
246
- robocopy "%principal%\Applio-RVC-Fork-%branch%" "%principal%" /E
247
- echo.
248
-
249
- echo Deleting contents of the subdirectory (files and folders)...
250
- rmdir "%principal%\Applio-RVC-Fork-%branch%" /S /Q
251
- echo.
252
-
253
- echo Cleaning up...
254
- del "%principal%\repo.zip"
255
- echo.
256
- cls
257
-
258
- echo Verifying if the local_fixes.py file exists in the Fixes folder...
259
- if exist "%fixesFolder%\%localFixesPy%" (
260
- echo Running the file...
261
- runtime\python.exe "%fixesFolder%\%localFixesPy%"
262
- ) else (
263
- echo The file "%localFixesPy%" was not found in the "Fixes" folder.
264
- )
265
- echo.
266
-
267
- echo Applio has been updated!
268
- echo.
269
- echo Press 'Enter' to access the main menu...
270
- pause>nul
271
- cls
272
- goto menu
273
-
274
-
275
- :updaterRuntime
276
-
277
- echo Downloading the ZIP file...
278
- powershell -command "& { Invoke-WebRequest -Uri '%repoUrl%' -OutFile '%principal%\repo.zip' }"
279
- echo.
280
-
281
- echo Extracting ZIP file...
282
- powershell -command "& { Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory('%principal%\repo.zip', '%principal%') }"
283
- echo.
284
-
285
- echo Copying folder and file structure from subdirectory to main directory...
286
- robocopy "%principal%\Applio-RVC-Fork-%branch%" "%principal%" /E
287
- echo.
288
-
289
- echo Deleting contents of the subdirectory (files and folders)...
290
- rmdir "%principal%\Applio-RVC-Fork-%branch%" /S /Q
291
- echo.
292
-
293
- echo Cleaning up...
294
- del "%principal%\repo.zip"
295
- echo.
296
- cls
297
-
298
- echo Downloading the runtime.zip file...
299
- curl -LJO "%URL_EXTRA%/%runtime%.zip"
300
- echo.
301
- cls
302
- echo Extracting the runtime.zip file, this might take a while...
303
- powershell -Command "Expand-Archive -Path '%runtime%.zip' -DestinationPath '.'"
304
- del runtime.zip
305
- echo.
306
- cls
307
-
308
- echo Verifying if the local_fixes.py file exists in the Fixes folder...
309
- if exist "%fixesFolder%\%localFixesPy%" (
310
- echo Running the file...
311
- runtime\python.exe "%fixesFolder%\%localFixesPy%"
312
- ) else (
313
- echo The file "%localFixesPy%" was not found in the "Fixes" folder.
314
- )
315
- echo.
316
-
317
- echo Applio has been updated!
318
- echo.
319
- echo Press 'Enter' to access the main menu...
320
- pause>nul
321
- cls
322
- goto menu