rsxdalv / tts-generation-webui

TTS Generation Web UI (Bark, MusicGen + AudioGen, Tortoise, RVC, Vocos, Demucs, SeamlessM4T, MAGNet, StyleTTS2, MMS)
https://rsxdalv.github.io/tts-generation-webui/
MIT License
1.46k stars 160 forks source link

updated today, getting this on start.bat now #249

Closed danollo closed 5 months ago

danollo commented 5 months ago

File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\server.py", line 40, in from src.tortoise.generation_tab_tortoise import generation_tab_tortoise File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\src\tortoise\generation_tab_tortoise.py", line 7, in from src.tortoise.gen_tortoise import ( File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\tts-generation-webui\src\tortoise\gen_tortoise.py", line 7, in from tortoise.api import TextToSpeech, MODELS_DIR File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\tortoise\api.py", line 10, in import torchaudio File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio__init.py", line 1, in from torchaudio import ( # noqa: F401 File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio_extension__init__.py", line 43, in _load_lib("libtorchaudio") File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torchaudio_extension\utils.py", line 61, in _load_lib torch.ops.load_library(path) File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\site-packages\torch_ops.py", line 643, in load_library ctypes.CDLL(path) File "F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\lib\ctypes\init.py", line 374, in init__ self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'F:\Blasting\barkoneclick\one-click-installers-tts-6.0\installer_files\env\Lib\site-packages\torchaudio\lib\libtorchaudio.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

rsxdalv commented 5 months ago

So what has happened is that torch/torchaudio has reinstalled itself. I have prevented it before from happening, so I am not certain what could have caused it; those dependencies haven't been modified recently.

The solution would be a) reinstall or b) reinstall just those two with cmd_windows.bat then

conda install -y -k pytorch[version=2,build=py3.10_cuda11.7*] torchvision torchaudio pytorch-cuda=11.7 cuda-toolkit ninja git -c pytorch -c nvidia/label/cuda-11.7.0 -c nvidia

if you use NVidia GPU

danollo commented 5 months ago

reinstall worked

rsxdalv commented 5 months ago

Glad to hear that. I'm still not certain what causes torch to get mangled up, I think I will need an option/tool to fix torch.