Error while Implementing AlexNet

I am implementing alexnet for pokedex challenge… i m getting same accuracy and val_acc every time, and both loss is nan, also model is predicting nan every time. I’ve tried to change the architecture of the model as well, but the same problem persists.

Code : - https://ide.codingblocks.com/s/102952

I think there is some problem with X data, because when i try to plot
plt.imshow(X[1000]) it gives a warning… and just shows random grains

Clipping input data to the valid range for imshow with RGB data ([0…1] for floats or [0…255] for integers).
C:\Users\Mohit Uniyal\Anaconda3\lib\site-packages\matplotlib\cm.py:273: RuntimeWarning: invalid value encountered in multiply
xx = (xx * 255).astype(np.uint8)

images are only working till 328

Hello @mohituniyal2010,

I will have a look at the dataset once and will let you know.
Thanks :slight_smile:

Hello @mohituniyal2010,
I went through the data and yes it is corrupted. I will report it to the team ASAP, till then try your luck with 328 images. :wink:
Once the data is refreshed, you can resubmit with all the images.
Happy Learning :slight_smile:
Thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Please inform me, when the new dataset is uploaded to the portal, so that i can start working on it.
Thanks