Looks like you are transfer learning a NN that was originally trained for 1000 classes to your case that has 108 classes. In this case, I think you can’t use decode_predictions as it is intended for the original 1000 classes. You should know the class names of your own 108 classes instead of relying on decode_predictions.