Image Classification project. NaN Loss while training. #626
Unanswered
santiagorg2401
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am currently preparing for the certification exam and while doing the checklist map I am training a few models. While training a feature extraction model and a normal sequential model I am facing a training issue, which is that the loss value remains at NaN at all times. This is a sample epoch log.
I am using the Sign Language MNIST dataset which comes in two separate .csv files for training and testing. I preprocessed them using the following code.
The image plots correctly and the shapes are:
The model code is the following.
I've already tried using
X_train, y_train, X_test, y_test
directly unsuccessfully. I also usedlayers.Rescaling(1/255.)
and a smaller learning rate but those options didn't work either. Any ideas are appreciated.Edit 1:
I recently tried ...
... Instead of data API but it also didn't work.
Beta Was this translation helpful? Give feedback.
All reactions