cannot create group in read-only mode. keras 1

cannot create group in read-only mode. keras

from keras.models import load_model
from keras.models import model_from_json
import json

with open('model_in_json.json','r') as f:
    model_json = json.load(f)

model = model_from_json(model_json)
model.load_weights('model_weights.h5')

Here is what the above code is Doing:
1. We are loading the model architecture from the json file.
2. We are loading the weights from the h5 file.
3. We are compiling the model.

Similar Posts