I know that decode_predictions() works for only imagenet dataset(1000 classes) for the models like VGG16 etc. But condiser my scenario.
My Scenario:
I used vgg16 pretrained model, and added my own weights.
So this turns out to be a non-Imagenet model. I have mentioned classes=9 as i trained my previous model with 9 classes only.
So now to find the predictions, i could use predict() method and then my print(answer) would give the corresponding class label. But actually i need the class name to be printed. Is that possible to get class name ?? If it is, can anyone explain me how.?