Need help fixing/config my Coqui-TTS #4315
-
|
Hello. I have recently changed my os from Ubuntu to Pop os. And I have reinstalled Coqui-TTS and now it is not working. (venv) snail@pop-os:~/Home0/TT$ python3 gpu.py
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html. Here is my script which did work before import os Set AMD GPU compatibility (adjust GFX version if needed)os.environ["HSA_OVERRIDE_GFX_VERSION"] = "10.3.0" # For RX 6000 series Input/Output filesINPUT_TXT = "script.txt" Read textwith open(INPUT_TXT, "r") as file: Check if ROCm (AMD GPU) is availabledevice = "cuda" if torch.cuda.is_available() else "cpu" Initialize TTS and move to GPU if availabletts = TTS(model_name="tts_models/multilingual/multi-dataset/xtts_v2") Generate speechtts.tts_to_file(text=text, language="en", speaker_wav=speaker_wav, file_path=OUTPUT_WAV) I have gotten many different "errors" and been able to fix some but then run into new ones which I cannot figure out. (venv) snail@pop-os:~/Home0/TT$ python3 gpu.py
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html. I've tired adding "torch.serialization.add_safe_globals([TTS.tts.configs.xtts_config.XttsConfig]" or Sorry if this is not enough information, I will be happy to provide more. I believe I am kind of experienced. Sorry if Im obviously doing something wrong. I enjoy Linux os and just trying to get things to work. I do not depend on AI I have tried that and it does not work well. Here below I demonstrate my "workflow" starting all over snail@pop-os:
Check the documentation of torch.load to learn more about types accepted by default with weights_only https://pytorch.org/docs/stable/generated/torch.load.html. As you can see this 'weights_only' problem I get stuck on. Hopefully this is the last problem I will have. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
This is fixed in our fork: https://coqui-tts.readthedocs.io/en/latest/faq.html#what-is-the-coqui-fork-about-and-how-to-install-it |
Beta Was this translation helpful? Give feedback.
This is fixed in our fork: https://coqui-tts.readthedocs.io/en/latest/faq.html#what-is-the-coqui-fork-about-and-how-to-install-it