question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

time dimension doesn't match

See original GitHub issue

^MTraining: 0%| | 0/200000 [00:00<?, ?it/s] ^MEpoch 1: 0%| | 0/454 [00:00<?, ?it/s]^[[APrepare training … Number of StyleSpeech Parameters: 28197333 Removing weight norm… Traceback (most recent call last): File “train.py”, line 224, in <module> main(args, configs) File “train.py”, line 98, in main output = (None, None, model((batch[2:-5]))) File “/share/mini1/sw/std/python/anaconda3-2019.07/v3.7/envs/StyleSpeech/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl result = self.forward(*input, **kwargs) File “/share/mini1/sw/std/python/anaconda3-2019.07/v3.7/envs/StyleSpeech/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py”, line 165, in forward return self.module(*inputs[0], **kwargs[0]) File “/share/mini1/sw/std/python/anaconda3-2019.07/v3.7/envs/StyleSpeech/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl result = self.forward(*input, **kwargs) File “/share/mini1/res/t/vc/studio/timap-en/libritts/StyleSpeech/model/StyleSpeech.py”, line 144, in forward d_control, File “/share/mini1/res/t/vc/studio/timap-en/libritts/StyleSpeech/model/StyleSpeech.py”, line 88, in G d_control, File “/share/mini1/sw/std/python/anaconda3-2019.07/v3.7/envs/StyleSpeech/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 889, in _call_impl result = self.forward(*input, **kwargs) File “/share/mini1/res/t/vc/studio/timap-en/libritts/StyleSpeech/model/modules.py”, line 417, in forward x = x + pitch_embedding RuntimeError: The size of tensor a (132) must match the size of tensor b (130) at non-singleton dimension 1 ^MTraining: 0%| | 1/200000 [00:02<166:02:12, 2.99s/it]

I think it might because of mfa I used. As mentioned in https://montreal-forced-aligner.readthedocs.io/en/latest/getting_started.html, I installed mfa through conda.

Then I used mfa align raw_data/LibriTTS lexicon/librispeech-lexicon.txt english preprocessed_data/LibriTTS instead of the way you showed. But I can’t find a way to run it as the way you showed, because I installed mfa through conda.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
keonlee9420commented, Feb 9, 2022

gotcha, I should mention this first, you have to modify /text as in your case where the target language is not English. In the current code, the output of text_to_sequence function is different from the MFA output based on ‘raw_data/mls/ german-lexicon.txt’. To resolve this, you have to match the output of both functions. This is also important at inference time, where we will use the same function in /text.

1reaction
keonlee9420commented, Feb 9, 2022

exactly. The missing phonemes must also be missed here, which is the part you must modify along with your languages. Again, you need to make sure that the output of text_to_sequence function should always be matched with the TextGrid’s phoneme sequence (MFA lexicons).

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Spacetime Surprise: Time Isn't Just Another Dimension
Here's a question that most of us have been asked at some point in our lives, “what's the shortest distance between two points?...
Read more >
How does Time work? It may need two dimensions to explain.
Recently, a vastly more accurate clock has been able to show that time passes differently, because of Earth gravity, with just a millimeter ......
Read more >
Does Time Exist? Why Our Gut Feelings Are No Match For ...
Some physicists say there is no distinction between the past and the future, and that time is a dimension just like space. This...
Read more >
How can time be a dimension when it is relative? [closed]
Being a "dimension" doesn't imply all values of that dimension (or any of them) are arbitrarily reachable or even exist physically at a...
Read more >
Level 1 Model : Dimension of mapping used for look... - Page 4
Level 1 Model : Dimension of mapping used for lookup doesn't match any dimension ... properly because the EMP01 module does not include...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found