-
Notifications
You must be signed in to change notification settings - Fork 60
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
hello,i have a question! #20
Comments
Hey..The same problem was with me then i realized that my input image size was not 112x112. when i have re-scaled them to 112x112 then Nan Values have been gone.. |
@GranMin |
@GranMin besides, if you use script convert_train_binary_tfrecord.py for data preprocessing, you must enforce all dir names of your N classes are strictly within interval [0,...,N-1], because dir names will be further used as labels in Softmax loss. |
@Androsimus thankyou, I find my problem that I labeled my dataset by [1,...,N] rather than [0,...,N-1]. So I got nan. I correct it and then it runs well. |
@GranMin if you use identical hyperparameters and datasets, then I can hardly imagine appropriate reasons. |
@Androsimus thanks.I had some problem with the understanding of tf.optimizers, I changed the hyperparameters as somebody said, and it works. Best wishes! |
I used your training parameters, loss=nan?I checked and said to use dynamic learning rate. Have you used it?
The text was updated successfully, but these errors were encountered: