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

Warning: NaN or Inf found in input tensor. #14

Open
liangxuy opened this issue Sep 28, 2019 · 1 comment
Open

Warning: NaN or Inf found in input tensor. #14

liangxuy opened this issue Sep 28, 2019 · 1 comment

Comments

@liangxuy
Copy link

Thanks for the code.
However, whenever I run the training on VRD dataset with the default setting, I met the 'Warning: NaN or Inf found in input tensor' problem.
I wonder if anyone else met similar problem?
image

@coldmanck
Copy link

coldmanck commented Dec 17, 2019

Hi @liangxuy and @jz462

I also encountered this problem during training on pytorch-1.0 branch. I am wondering whether it matters or not, as most of the training losses (as showed in screenshot above, loss_cls_ttl, loss_contrastive_sbj, loss_contrastive_obj, loss_so_contrastive_sbj, etc.) become nan.

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