Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2745 #2748

Merged
merged 1 commit into from
Jul 7, 2023
Merged

Fix #2745 #2748

merged 1 commit into from
Jul 7, 2023

Conversation

erogol
Copy link
Member

@erogol erogol commented Jul 7, 2023

No description provided.

@tazz4843
Copy link

tazz4843 commented Jul 7, 2023

CLI command referenced in #2745 throws this error

Traceback (most recent call last):
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/bin/tts", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/bin/synthesize.py", line 447, in main
    wav = synthesizer.tts(args.text, speaker_name=args.speaker_idx)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/utils/synthesizer.py", line 365, in tts
    outputs = self.tts_model.synthesize(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/tts/models/tortoise.py", line 522, in synthesize
    outputs = self.inference_with_config(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/tts/models/tortoise.py", line 592, in inference_with_config
    return self.inference(text, **settings)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/tts/models/tortoise.py", line 680, in inference
    ) = self.get_conditioning_latents(
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zero/PycharmProjects/scripty-tts-server/venv/lib/python3.11/site-packages/TTS/tts/models/tortoise.py", line 434, in get_conditioning_latents
    auto_conds = torch.stack(auto_conds, dim=1)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: stack expects a non-empty TensorList

if the directory doesn't have a .wav file, fixing this for UX might be a good idea.

@erogol
Copy link
Member Author

erogol commented Jul 7, 2023

@tazz4843 Can't reproduce this. How many audio files do you have for the speaker?

@erogol erogol merged commit a2984fb into dev Jul 7, 2023
40 checks passed
@erogol erogol deleted the fix_2745 branch July 7, 2023 18:23
Tindell pushed a commit to pugtech-co/TTS that referenced this pull request Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants