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

Model output nan #55

Open
rooskraaijveld opened this issue Feb 16, 2023 · 2 comments
Open

Model output nan #55

rooskraaijveld opened this issue Feb 16, 2023 · 2 comments

Comments

@rooskraaijveld
Copy link

Hi there,

I am trying to use your model on my own dataset, but the model outputs nans even though my data does not include any nans/infs. I have images of size 1x256x256 and in type float32 if that helps.

Do you know what could have caused this?

Thanks in advance!

@npielawski
Copy link
Collaborator

Hello @rooskraaijveld,

Thanks for your interest in CoMIR!

When do the nans/infs happen? At the start of training or after a while? Could you share the loss function in the latter case?

What is the range of the intensity of your images? Normalizing or standardizing the images may help as a first step.

Let me know if that works.

Best,
Nicolas

@rooskraaijveld
Copy link
Author

Hi Nicolas!

Thanks for your response. I get nan's at the beginning of training and I normalised the images between 0 and 1 and it still happens. Let me know if you need more information!

Best,
Roos

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