-
Notifications
You must be signed in to change notification settings - Fork 107
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Losses from validation set are NAN #91
Comments
In addition to this, am having some issues with predictions that are strange - trained the model with the same exact code minus the validation set 2 days ago and got this prediction for an unseen image |
Could you take a look at #36 and see if any of those solutions work for you? Looking at the second image my guess is that it's the NaN issue causing the model to not train properly and therefore not produce any results. This is definitely a weird issue for sure - if none of those work it could be worth trying to create a new notebook from scratch to see if that helps at all. |
Hello, looked at #36 . Went through the code that generates the dataset again to make sure there were no issues with formatting. |
The content tag shouldn't affect things at all, so that should hopefully not be the issue. Were you able to ultimately figure this out? It seems like this issue has shown up now and then with a few people, but haven't been able to get a clear fix for it that works for everyone. |
It looks like your validation dataset doesn't have any images in it on line 548 - what's the output when you run If it's 0, then this likely indicates some kind of issue with the format of the folder containing the XML files. If so, could you share an image of what those look like? |
I have a training dataset of 384 labeled images - I have checked dataset, since all of these are simulated images they should not be mislabeled or any issues with the dataset itself like negative x/y values for bounding boxes. Then I have a validation set of 95 images - same thing, simulated images I generated with some other code. I load the validation and training sets with core.Dataset and then give to the model with the following code:
mdl.fit(dataset=trainset, val_dataset = validset, epochs=10, learning_rate=0.01, verbose=True)
I run the code on google colab notebook, prior to my code I do have to install detecto package
When I run the code I get a NAN error for the loss:
Not sure why this is happening, any help appreciated
The text was updated successfully, but these errors were encountered: