Closed code-switched closed 2 months ago
Can you change the line in requirements.txt to:
torch==2.3.1+cu121
To:
torch
And rerun to see if it works?
Can you change the line in requirements.txt to:
torch==2.3.1+cu121
To:
torch
And rerun to see if it works?
I think this would resolve it. I manually ran the full torch command before pip install -r requirements.txt
and it worked. I'll post another comment with the full commands. I actually want to set TTS up on a different machine so I'll give this requirements.txt
change a test in a bit.
This set of commands worked for me:
git clone https://github.com/JarodMica/StyleTTS-WebUI.git
cd .\StyleTTS-WebUI\
py -3.11 -m venv venv
.\venv\Scripts\activate
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt
git submodule init
git submodule update --remote
pip install .\modules\StyleTTS2\
curl.exe -L -o "models\pretrain_base_1\epochs_2nd_00020.pth" "https://huggingface.co/yl4579/StyleTTS2-LibriTTS/resolve/main/Models/LibriTTS/epochs_2nd_00020.pth"
curl.exe -L -o "models\pretrain_base_1\config.yml" "https://huggingface.co/yl4579/StyleTTS2-LibriTTS/resolve/main/Models/LibriTTS/config.yml"
[System.Environment]::SetEnvironmentVariable("PHONEMIZER_ESPEAK_LIBRARY", "C:\Program Files\eSpeak NG\libespeak-ng.dll", "Machine")
[System.Environment]::SetEnvironmentVariable("PHONEMIZER_ESPEAK_PATH", "C:\Program Files\eSpeak NG", "Machine")
python .\modules\StyleTTS2\styletts2\download_punkt.py
python webui.py
Awesome, well, looks good then, thanks! I'll get around to updating requirements and install instructions then sometime soon
Am I following this correctly?
The install command never makes it past
munch
the 3rd package out of 21 Maybe we should run the pytorch command first then uninstall + reinstall again afterrequirements.txt
just to be sure?