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

VITS : stack expects each tensor to be equal size, but got [445852] at entry 0 and [445851] at entry 17 #1826

Open
possum-code opened this issue Dec 5, 2024 · 1 comment

Comments

@possum-code
Copy link

possum-code commented Dec 5, 2024

Training VITS model

Training Recipe : egs/ljspeech/TTS

Tried 2 different datasets that was converted to Ljspeech dataset format, same approach has worked earlier

Original Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/torch/utils/data/_utils/worker.py", line 309, in _worker_loop
data = fetcher.fetch(index) # type: ignore[possibly-undefined]
^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch
data = self.dataset[possibly_batched_index]
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/lhotse/dataset/speech_synthesis.py", line 67, in getitem
audio, audio_lens = collate_audio(cuts)
^^^^^^^^^^^^^^^^^^^
File "/opt/conda/lib/python3.11/site-packages/lhotse/dataset/collation.py", line 202, in collate_audio
audios = torch.stack(audios)
^^^^^^^^^^^^^^^^^^^
RuntimeError: stack expects each tensor to be equal size, but got [445852] at entry 0 and [445851] at entry 2

@JinZr
Copy link
Collaborator

JinZr commented Dec 8, 2024

hi, seems like this is a RuntimeError happened within lhotse, do you mind sharing the command and dataset you used for training?

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

No branches or pull requests

2 participants