-
Notifications
You must be signed in to change notification settings - Fork 154
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
Nan problems during training #13
Comments
What are the input image sizes you are training on? Sometimes inputs that are too large can give this error. |
My images are of size 900 x 900 pixels. They're from the Spacenet Off Nadir Dataset (AOI Atlanta). |
My guess would be an issue related to the label format, but I can't be sure without more information. |
My labels for an image are of the format 1 0.876977 0.555887 0.074074 0.042762 |
I will have a better chance of helping if you can also provide the command you're using to begin training. One further possibility is that the labels need to be zero-indexed, so if you only have a single object class the labels should appear as: |
This is the command I used to begin training.
Oh, I thought 0 was reserved for background and categories were labelled starting from 1. I will look into this and get back to you. |
You were right. The problem was due to the class labelling not being zero indexed. Thanks. |
I'm having a possible gradient issue while training. When training on batches the following prompt comes up:
Region Avg IOU: -nan, Class: -nan, Obj: -nan, No Obj: 0.463884, Avg Recall: -nan, count: 0
Region Avg IOU: -nan, Class: -nan, Obj: -nan, No Obj: 0.463872, Avg Recall: -nan, count: 0
Region Avg IOU: -nan, Class: -nan, Obj: -nan, No Obj: 0.463883, Avg Recall: -nan, count: 0
....
Does anyone how to rectify it?
The text was updated successfully, but these errors were encountered: