neonbjb / tortoise-tts

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

Error after running the code #496

Open yorunoken opened 1 year ago

yorunoken commented 1 year ago

I should have installed all the requirements, yet I get this error:

(base) C:\Users\mffet\tortoise-tts>  python tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast
C:\Users\mffet\anaconda3\lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated
  "class": algorithms.Blowfish,
Traceback (most recent call last):
  File "C:\Users\mffet\tortoise-tts\tortoise\do_tts.py", line 27, in <module>
    tts = TextToSpeech(models_dir=args.model_dir)
  File "C:\Users\mffet\tortoise-tts\tortoise\api.py", line 231, in __init__
    self.autoregressive.load_state_dict(torch.load(get_model_path('autoregressive.pth', models_dir)))
  File "C:\Users\mffet\anaconda3\lib\site-packages\torch\serialization.py", line 797, in load
    with _open_zipfile_reader(opened_file) as opened_zipfile:
  File "C:\Users\mffet\anaconda3\lib\site-packages\torch\serialization.py", line 283, in __init__
    super().__init__(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
manmay-nakhashi commented 12 months ago

@YoruNoKen download autoregrassive model again. make sure you are using python 3.9.10

giovannilima262 commented 11 months ago

I have the same error using python version 3.9.17