neonbjb / tortoise-tts

A multi-voice TTS system trained with an emphasis on quality
Apache License 2.0
13.08k stars 1.8k forks source link

autoregressive.pth error #350

Open hawaricracker opened 1 year ago

hawaricracker commented 1 year ago

Traceback (most recent call last): File "D:\copy\voice.py", line 15, in tts = TextToSpeech() File "D:\New folder (2)\lib\site-packages\tortoise-2.4.2-py3.10.egg\tortoise\api.py", line 231, in init self.autoregressive.load_state_dict(torch.load(get_model_path('autoregressive.pth', models_dir))) File "D:\New folder (2)\lib\site-packages\torch\serialization.py", line 777, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "D:\New folder (2)\lib\site-packages\torch\serialization.py", line 282, in init super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

previously I ran this program and it started downloading autoregressive.pth but I immediately stopped the program, then when I run it again the above error appears. do i have to download the autoregressive file manually and put it in the models folder?

hawaricracker commented 1 year ago

I have found a solution, namely by deleting the tortoise folder in /home/username/.cache and then rerun the program

snehangsude commented 1 year ago

@hawaricracker looking into the /home shows the folder as empty - how are you locating the .cache file?

hawaricracker commented 1 year ago

@hawaricracker looking into the /home shows the folder as empty - how are you locating the .cache file?

that's a hidden file, i'm using windows

snehangsude commented 1 year ago

Ah! Thanks. I was on Ubuntu.

This issue can be replicated though in Google Colab and Ubuntu.

weasam commented 1 year ago

I have found a solution, namely by deleting the tortoise folder in /home/username/.cache and then rerun the program This work for me, appreciated C:\Users[username].cache\ del huggingface del tortoise

hevldawn commented 1 year ago

it worked for me, thanks