I trained my CNN (VGG) through google colab and generated .h5 file. Now problem is, I can predict my output successfully through google colab but when i download that .h5 tr
Changing
from keras.models import load_model
to
from tensorflow.keras.models import load_model
solved my problem!
To eliminate errors, import all things directly from Keras or TensorFlow. Mixing both of them in same project may result in problems.