PRIS-CV / CAM-Guided-Attention

Code release for Grad-CAM Guided Attention Module for Fine-grained Visual Classification (MLSP 2022)
12 stars 1 forks source link

LOSS BECOMES NAN #3

Open fabihabushra opened 1 year ago

fabihabushra commented 1 year ago

When I trained the model using your default settings (loss and classifier), the train and test loss became "nan" after few epochs. When I checked the output probabilities of the classes, they were not adding upto 1. Rather the numbers were large negative values which eventually made the loss equal to nan. Please meticulously check the issue and update the codes.

[N.B: I used the same dataset mentioned in your paper]

saidulK commented 1 year ago

image