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

The size of tensor a (674) must match the size of tensor b (600) at non-singleton dimension 1 #64

Open
poojitharamachandra opened this issue Oct 13, 2023 · 1 comment

Comments

@poojitharamachandra
Copy link

hi,

I am following the tutorial given in https://huggingface.co/blog/speecht5 to convert text to speech. but facing the below problem, when the text is lengthy.
"The size of tensor a (674) must match the size of tensor b (600) at non-singleton dimension 1"

is it because the length of the text is more than 600chars?
How do I handle this?

the config file contains
"max_length": 1876,
"max_speech_positions": 1876,
in microsoft t5_tts

and

"model_max_length": 600, in tokenizer_config.json

can I change these values?

@cparello
Copy link

most likely have to do it by sentence and combine

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