From 4b8e648a8670960826159cc718407d4c7c2c9e74 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Sat, 10 Aug 2024 22:02:59 +0200 Subject: [PATCH] fixed xtts new version --- xtts-rocm/install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xtts-rocm/install.sh b/xtts-rocm/install.sh index 04568a9..b7ccccc 100755 --- a/xtts-rocm/install.sh +++ b/xtts-rocm/install.sh @@ -8,15 +8,17 @@ install_xtts() { echo "XTTS repository already exists. Skipping clone." yes_or_no "Do you want to update XTTS WebUI ?" && { cd webui + rm requirements_without_torch.txt git pull echo "XTTS WebUI successfully updated." + cd .. } else echo "Cloning XTTS repository..." git clone https://github.com/daswer123/xtts-webui webui - grep -v 'torch' requirements.txt > requirements_without_torch.txt fi + iconv -f UTF-16 -t UTF-8 webui/requirements.txt | grep -v 'torch' > webui/requirements_without_torch.txt $python_exec -m pip install -r webui/requirements_without_torch.txt # Disable gpu for faster-whipser as ROCM isn't supported yet @@ -24,7 +26,7 @@ install_xtts() { sed -i 's/asr_model = WhisperModel(whisper_model, device=device, compute_type="float16")/asr_model = WhisperModel(whisper_model, device=device, compute_type="int8")/' webui/scripts/utils/formatter.py # Deepspeed and ninja (not working) - $python_exec -m pip install deepspeed ninja + $python_exec -m pip install ninja #deepspeed # apt-get install -y ninja-build }