mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-01-26 17:09:44 +00:00
Update installer.bat
This commit is contained in:
@@ -321,22 +321,25 @@ REM Install script for XTTS
|
||||
)
|
||||
|
||||
:install_st_xtts
|
||||
REM Clone the xtts-api-server repository for voice examples
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Cloning xtts-api-server repository...
|
||||
git clone https://github.com/daswer123/xtts-api-server.git
|
||||
cd /d "%~dp0xtts-api-server"
|
||||
|
||||
REM Install pip requirements
|
||||
echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[xtts]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements in conda enviroment: %cyan_fg_strong%xtts%reset%
|
||||
pip install -r requirements.txt
|
||||
pip install xtts-api-server
|
||||
pip install pydub
|
||||
pip install stream2sentence
|
||||
|
||||
REM Create folders for xtts
|
||||
cd /d "%~dp0"
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Creating xtts folders...
|
||||
mkdir "%~dp0xtts"
|
||||
mkdir "%~dp0xtts\speakers"
|
||||
mkdir "%~dp0xtts\output"
|
||||
|
||||
REM Clone the xtts-api-server repository for voice examples
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Cloning xtts-api-server repository...
|
||||
git clone https://github.com/daswer123/xtts-api-server.git
|
||||
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Adding voice examples to speakers directory...
|
||||
xcopy "%~dp0xtts-api-server\example\*" "%~dp0xtts\speakers\" /y /e
|
||||
|
||||
@@ -712,19 +715,19 @@ REM Use the GPU choice made earlier to install requirements for XTTS
|
||||
if "%GPU_CHOICE%"=="1" (
|
||||
echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[xtts]%reset% %blue_fg_strong%[INFO]%reset% Installing NVIDIA version of PyTorch in conda enviroment: %cyan_fg_strong%xtts%reset%
|
||||
pip install torch==2.1.1+cu118 torchaudio==2.1.1+cu118 --index-url https://download.pytorch.org/whl/cu118
|
||||
goto :install_xtts
|
||||
goto :install_xtts_final
|
||||
) else if "%GPU_CHOICE%"=="2" (
|
||||
echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[xtts]%reset% %blue_fg_strong%[INFO]%reset% Installing AMD version of PyTorch in conda enviroment: %cyan_fg_strong%xtts%reset%
|
||||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.6
|
||||
goto :install_xtts
|
||||
goto :install_xtts_final
|
||||
) else if "%GPU_CHOICE%"=="3" (
|
||||
echo %blue_bg%[%time%]%reset% %cyan_fg_strong%[xtts]%reset% %blue_fg_strong%[INFO]%reset% Installing CPU-only version of PyTorch in conda enviroment: %cyan_fg_strong%xtts%reset%
|
||||
pip install torch torchvision torchaudio
|
||||
goto :install_xtts
|
||||
goto :install_xtts_final
|
||||
)
|
||||
|
||||
|
||||
:install_xtts
|
||||
:install_xtts_final
|
||||
REM Clone the xtts-api-server repository for voice examples
|
||||
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Cloning xtts-api-server repository...
|
||||
git clone https://github.com/daswer123/xtts-api-server.git
|
||||
|
||||
Reference in New Issue
Block a user