diff --git a/0-bat-files/0 Update.bat b/0-bat-files/0 Update.bat new file mode 100644 index 00000000..74a8a156 --- /dev/null +++ b/0-bat-files/0 Update.bat @@ -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 diff --git a/0-bat-files/1 Update Pip.bat b/0-bat-files/1 Update Pip.bat new file mode 100644 index 00000000..fbfef3b8 --- /dev/null +++ b/0-bat-files/1 Update Pip.bat @@ -0,0 +1,7 @@ +CHCP 65001 +@echo off +cd ../ + +runtime\python.exe -m pip install -r ./requirements.txt + +pause \ No newline at end of file diff --git a/0-bat-files/10 Model Management(Optional).bat b/0-bat-files/10 Model Management(Optional).bat new file mode 100644 index 00000000..35435d26 --- /dev/null +++ b/0-bat-files/10 Model Management(Optional).bat @@ -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 \ No newline at end of file diff --git a/0-bat-files/3 run Single File Gradio App.bat b/0-bat-files/3 run Single File Gradio App.bat new file mode 100644 index 00000000..0fd4e862 --- /dev/null +++ b/0-bat-files/3 run Single File Gradio App.bat @@ -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 \ No newline at end of file diff --git a/0-bat-files/5 run Backend.bat b/0-bat-files/5 run Backend.bat new file mode 100644 index 00000000..c88eba7b --- /dev/null +++ b/0-bat-files/5 run Backend.bat @@ -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 \ No newline at end of file diff --git a/0-bat-files/6 run Frontend(need Backend).bat b/0-bat-files/6 run Frontend(need Backend).bat new file mode 100644 index 00000000..856340ce --- /dev/null +++ b/0-bat-files/6 run Frontend(need Backend).bat @@ -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 \ No newline at end of file diff --git a/0-bat-files/999 Force Updating.bat b/0-bat-files/999 Force Updating.bat new file mode 100644 index 00000000..59b28e5d --- /dev/null +++ b/0-bat-files/999 Force Updating.bat @@ -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 \ No newline at end of file diff --git a/go-webui.bat b/go-webui.bat deleted file mode 100644 index 2f985386..00000000 --- a/go-webui.bat +++ /dev/null @@ -1,2 +0,0 @@ -runtime\python.exe webui.py -pause diff --git a/go-webui.ps1 b/go-webui.ps1 deleted file mode 100644 index 219798a4..00000000 --- a/go-webui.ps1 +++ /dev/null @@ -1,4 +0,0 @@ -$ErrorActionPreference = "SilentlyContinue" -chcp 65001 -& "$PSScriptRoot\runtime\python.exe" "$PSScriptRoot\webui.py" -pause diff --git a/install.bat b/install.bat new file mode 100644 index 00000000..17fb3f1d --- /dev/null +++ b/install.bat @@ -0,0 +1,2 @@ +git submodule init +git submodule update --init --recursive diff --git a/install.sh b/install.sh index 8dadb26d..cf237643 100644 --- a/install.sh +++ b/install.sh @@ -4,3 +4,8 @@ conda install -c conda-forge gxx 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 pip install -r requirements.txt + +git submodule init +git submodule update --init --recursive + +