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

why loss is nan #126

Open
Kelsey2018 opened this issue Apr 14, 2022 · 0 comments
Open

why loss is nan #126

Kelsey2018 opened this issue Apr 14, 2022 · 0 comments

Comments

@Kelsey2018
Copy link

Hi,
I have input data between 0 and 1, and at the first several epoches, the loss is normal, but then it turned to nan. I cannot find the errors,can you help me?
in base_dataset.py
transform_list += [transforms.ToTensor(), # normalized to [0, 1] transforms.Normalize((0, 0, 0), (1, 1, 1))]
in util.py line 18
image_numpy = np.transpose(image_numpy, (1, 2, 0)) * 255.0

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

1 participant