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

when I run "train_mosi.py", there is the below results with "UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.3 and num_layers=1 "num_layers={}".format(dropout, num_layers))" #25

Open
xiajili opened this issue Jul 8, 2022 · 1 comment

Comments

@xiajili
Copy link

xiajili commented Jul 8, 2022

Epoch 0 complete! Average Training loss: nan
Training got into NaN values...

Model initialized
Epoch 0 complete! Average Training loss: nan
Training got into NaN values...

Model initialized
Epoch 0 complete! Average Training loss: nan
Training got into NaN values...

@SeungYeonJeong22
Copy link

I'm also encountering a similar issue where the variance becomes 0 after passing through batchnorm1d. I've confirmed that this happens because of the presence of a 0 variance. Although I know that epsilon in batchNorm1d is meant to prevent division by 0, I still end up with a variance of 0, resulting in NaN values throughout the batchnorm1d output. I'm curious to know how to resolve this issue. i appreciate you it if you could comment here once you resolve this issue

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