Maybe v2.3
This commit is contained in:
@@ -37,7 +37,10 @@ if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
pip install -U -r Style-Bert-VITS2\requirements.txt
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
echo Style-Bert-VITS2のアップデートが完了しました。
|
||||
echo Update completed. Running Style-Bert-VITS2 Editor...
|
||||
|
||||
@REM Style-Bert-VITS2 Editorを起動
|
||||
python server_editor.py --inbrowser
|
||||
|
||||
pause
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ if not exist %CURL_CMD% (
|
||||
|
||||
@REM Style-Bert-VITS2.zip をGitHubのmasterの最新のものをダウンロード
|
||||
%CURL_CMD% -Lo Style-Bert-VITS2.zip^
|
||||
https://github.com/litagin02/Style-Bert-VITS2/archive/refs/heads/dev.zip
|
||||
https://github.com/litagin02/Style-Bert-VITS2/archive/refs/heads/master.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM Style-Bert-VITS2.zip を解凍(フォルダ名前がBert-VITS2-masterになる)
|
||||
@@ -24,8 +24,8 @@ del Style-Bert-VITS2.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM Bert-VITS2-masterの中身をStyle-Bert-VITS2に上書き移動
|
||||
xcopy /QSY .\Style-Bert-VITS2-dev\ .\Style-Bert-VITS2\
|
||||
rmdir /s /q Style-Bert-VITS2-dev
|
||||
xcopy /QSY .\Style-Bert-VITS2-master\ .\Style-Bert-VITS2\
|
||||
rmdir /s /q Style-Bert-VITS2-master
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM 仮想環境を有効化
|
||||
@@ -49,16 +49,19 @@ if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
pushd Style-Bert-VITS2
|
||||
|
||||
@REM JP-Extra版以前からの場合のために一応initialize.pyを実行
|
||||
|
||||
echo python initialize.py
|
||||
python initialize.py
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
echo ----------------------------------------
|
||||
echo Update completed. Running Style-Bert-VITS2 Editor...
|
||||
echo ----------------------------------------
|
||||
|
||||
@REM Style-Bert-VITS2 Editorを起動
|
||||
python server_editor.py --inbrowser
|
||||
|
||||
pause
|
||||
|
||||
popd
|
||||
|
||||
|
||||
pause
|
||||
|
||||
popd
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
chcp 65001 > NUL
|
||||
@echo off
|
||||
|
||||
pushd %~dp0
|
||||
set PS_CMD=PowerShell -Version 5.1 -ExecutionPolicy Bypass
|
||||
|
||||
set CURL_CMD=C:\Windows\System32\curl.exe
|
||||
if not exist %CURL_CMD% (
|
||||
echo [ERROR] %CURL_CMD% が見つかりません。
|
||||
pause & popd & exit /b 1
|
||||
)
|
||||
|
||||
@REM Style-Bert-VITS2.zip をGitHubのmasterの最新のものをダウンロード
|
||||
%CURL_CMD% -Lo Style-Bert-VITS2.zip^
|
||||
https://github.com/litagin02/Style-Bert-VITS2/archive/refs/heads/master.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM Style-Bert-VITS2.zip を解凍(フォルダ名前がBert-VITS2-masterになる)
|
||||
%PS_CMD% Expand-Archive -Path Style-Bert-VITS2.zip -DestinationPath . -Force
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM 元のzipを削除
|
||||
del Style-Bert-VITS2.zip
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM Bert-VITS2-masterの中身をStyle-Bert-VITS2に上書き移動
|
||||
xcopy /QSY .\Style-Bert-VITS2-master\ .\Style-Bert-VITS2\
|
||||
rmdir /s /q Style-Bert-VITS2-master
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
@REM 仮想環境のpip requirements.txtを更新
|
||||
|
||||
echo call .\Style-Bert-VITS2\scripts\activate.bat
|
||||
call .\Style-Bert-VITS2\venv\Scripts\activate.bat
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
echo pip uninstall -y pyopenjtalk-prebuilt pyopenjtalk
|
||||
pip uninstall -y pyopenjtalk-prebuilt pyopenjtalk
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
echo pip install -U pyopenjtalk-dict
|
||||
pip install -U pyopenjtalk-dict
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
echo pip install -U -r Style-Bert-VITS2\requirements.txt
|
||||
pip install -U -r Style-Bert-VITS2\requirements.txt
|
||||
if %errorlevel% neq 0 ( pause & popd & exit /b %errorlevel% )
|
||||
|
||||
pushd Style-Bert-VITS2
|
||||
|
||||
@REM 初期化(必要なモデルのダウンロード)
|
||||
python initialize.py
|
||||
|
||||
echo Style-Bert-VITS2の2.xへのアップデートが完了しました。
|
||||
|
||||
pause
|
||||
|
||||
popd
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user