更新了英文版的bat

This commit is contained in:
XTer 2024-03-17 23:15:37 +08:00
parent 2f3c0dd7fa
commit 9a2473cee4
11 changed files with 98 additions and 6 deletions

23
0-bat-files/0 Update.bat Normal file
View File

@ -0,0 +1,23 @@
CHCP 65001
@echo off
setlocal
echo set the local repo path
set REPO_PATH=../
echo cd to the local repo path
cd /d %REPO_PATH%
echo setting the PortableGit path
set GIT_PATH=PortableGit/bin
echo Update submodule
"%GIT_PATH%\git.exe" submodule update --init --recursive
echo git pull
"%GIT_PATH%\git.exe" stash
"%GIT_PATH%\git.exe" pull https://gitee.com/xxoy/GPT-SoVITS-Inference.git main
echo.
pause

View File

@ -0,0 +1,7 @@
CHCP 65001
@echo off
cd ../
runtime\python.exe -m pip install -r ./requirements.txt
pause

View File

@ -0,0 +1,8 @@
CHCP 65001
@echo off
cd ../
echo Try to start the program, please wait patiently for gradio to start
echo if the browser does not pop up automatically, please manually open the browser and enter http://127.0.0.1:9868
runtime\python.exe ./Inference/src/Character_Manager.py
pause

View File

@ -0,0 +1,9 @@
CHCP 65001
@echo off
cd ../
echo Try to start the program, please wait patiently for gradio to start
echo if the browser does not pop up automatically, please manually open the browser and enter http://127.0.0.1:7860
runtime\python.exe app.py
pause

View File

@ -0,0 +1,9 @@
CHCP 65001
@echo off
cd ../
echo Try to start the program, please wait patiently for the backend to start, wait for more than ten seconds
echo if there is no new content, it means that the backend is not normal
runtime\python.exe ./Inference/src/tts_backend.py
pause

View File

@ -0,0 +1,10 @@
CHCP 65001
@echo off
cd ../
echo Try to start the program, please wait patiently for the frontend to start, wait for more than ten seconds
echo if there is no new content, it means that the frontend is not normal
echo if the browser does not pop up automatically, please manually open the browser and enter http://127.0.0.1:9867
runtime\python.exe ./Inference/src/TTS_Webui.py
pause

View File

@ -0,0 +1,25 @@
CHCP 65001
@echo off
setlocal
echo Set the local repo path
set REPO_PATH=../
echo cd to the local repo path
cd /d %REPO_PATH%
echo setting the PortableGit path
set GIT_PATH=PortableGit/bin
echo Update submodule
"%GIT_PATH%\git.exe" submodule update --init --recursive
"%GIT_PATH%\git.exe" submodule foreach --recursive "git fetch origin plug_in && git reset --hard origin/plug_in"
echo git reset --hard
"%GIT_PATH%\git.exe" fetch https://gitee.com/xxoy/GPT-SoVITS-Inference.git main
"%GIT_PATH%\git.exe" reset --hard FETCH_HEAD
echo.
pause

View File

@ -1,2 +0,0 @@
runtime\python.exe webui.py
pause

View File

@ -1,4 +0,0 @@
$ErrorActionPreference = "SilentlyContinue"
chcp 65001
& "$PSScriptRoot\runtime\python.exe" "$PSScriptRoot\webui.py"
pause

2
install.bat Normal file
View File

@ -0,0 +1,2 @@
git submodule init
git submodule update --init --recursive

View File

@ -4,3 +4,8 @@ conda install -c conda-forge gxx
conda install ffmpeg cmake conda install ffmpeg cmake
conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia conda install pytorch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install -r requirements.txt pip install -r requirements.txt
git submodule init
git submodule update --init --recursive