Conversation
Signed-off-by: njellinas <nickgreek54@gmail.com>
|
Just tried, get error TypeError: forward() missing 1 required positional argument: 'output_lengths' |
|
In which point did it output this error? I put an extra argument in the Tacotron2Loss forward function, but I give it as |
|
Trace |
|
I guess you have a different codebase because this line |
|
Yes, I have my own modification (minor) of this repo. https://colab.research.google.com/drive/1tBOXMBNbAkS-zHDIvP3hfFEUNf-kGosd |
|
Oh OK then that makes sense. Look at the changes in the diffs, and apply them to your code. You are missing the last argument at criterion which must be the Mel lengths. |
|
Oh, sorry, somehow I missed what i copy-pasted train file and just pulled your changes to my repo. |
|
@njellinas Does adding the masked MSE loss improve the model? |
I noticed that you mask the outputs of the decoder, so there was no need to apply any more 'masking code'. Just in the calculation of the MSE I added a counter of the non-padded elements, changed the loss reduction to 'sum' and then divided with the counter.
Signed-off-by: njellinas nickgreek54@gmail.com