with open(\'2model.json\',\'r\') as f: json = f.read() model = model_from_json(json) model.load_weights(\"color_tensorflow_real_mode.h5\")
I traine
load the model using
from tensorflow.keras.models import load_model
instead of
from keras.models import load_model
I tried using many methods but this is the one that finally worked!