neonbjb / tortoise-tts

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

AssertionError: This shouldn't happen. My coding sucks. #30

Closed xiaoqin00 closed 2 years ago

xiaoqin00 commented 2 years ago

when i test for a test.txt file,it occurred python tortoise/read.py --textfile='./test.txt' --voice random

image

xiaoqin00 commented 2 years ago

when i try it again. there is another error.

OSError: jbetker/tacotron_symbols is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with use_auth_token or log in with huggingface-cli login and pass use_auth_token=True.

neonbjb commented 2 years ago

Regarding the second error, should be fixed now.

Regarding the first error: sounds like you are hitting a redaction edge case. I added some code that will dump some information that will help me debug it. Please re-sync to the head of origin/main, re-install (if you did so) and try again. If you run into the error again, re-open this bug and attached the debug files.

Sorry about the required legwork. The redaction code is complicated and difficult to test. I recommend not using it (don't use brackets in your prompts) if you absolutely need stability at the moment.

xiaoqin00 commented 2 years ago

oh,no i meet error this morning.

Traceback (most recent call last): File "tortoise/do_tts.py", line 27, in tts = TextToSpeech(models_dir=args.model_dir) File "C:\plan\test3\tortoise-tts-main\tortoise\api.py", line 196, in init self.autoregressive.load_state_dict(torch.load(f'{models_dir}/autoregressive.pth')) File "C:\plan\test3\venv\lib\site-packages\torch\serialization.py", line 713, in load return _legacy_load(opened_file, map_location, pickle_module, pickle_load_args) File "C:\plan\test3\venv\lib\site-packages\torch\serialization.py", line 920, in _legacy_load magic_number = pickle_module.load(f, pickle_load_args) EOFError: Ran out of input

image

neonbjb commented 2 years ago

One of your model weights was corrupted. Delete the contents of .models/* and try again.

xiaoqin00 commented 2 years ago

thank u !

AssertionError: This shouldn't happen. My coding sucks This error reappeared。 Are there any call restrictions here? Every time I get this error it's because I'm testing long text。

neonbjb commented 2 years ago

Hi, please update. When this occurs again the program will dump some debugging files you can send me.

In general, this program does not perform well with long text inputs. Consider breaking them up.