Closed taalua closed 1 year ago
Hello, run pip install transformers==4.33.1
and try again.
If anyone experiencing issue even after transformers update, check if model files exists on xtts_v1 folder
This should print path check inside and if there is no file in it delete the folder xtts_v1
import os
from TTS.utils.generic_utils import get_user_data_dir
model_path = os.path.join(get_user_data_dir("tts"), "tts_models--multilingual--multi-dataset--xtts_v1")
print(model_path)
Then after deleting xtts_v1 folder (if its contents are empty!) you can download model within code with this
import os
os.environ["COQUI_TOS_AGREED"] = "1"
from TTS.api import TTS
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v1")
https://huggingface.co/coqui/XTTS-v1/discussions/8#651dc7be3cc79d62e6a9b864
I close this due to inactivity.
For those who still face this problem: update TTS to the latest version. In my case, I just forgot about the fact that I have an old version installed locally ;)
Describe the bug
Error when model.load_state_dict(checkpoint['model']):
To Reproduce
git clone https://github.com/coqui-ai/TTS pip install -e . all
Expected behavior
No response
Logs
No response
Environment
Additional context
No response