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

# Serialize model to JSON
model_json = model.to_json()

with open("../assets/models/mass_roads_unet.json", "w") as json_file:
    json_file.write(model_json)

# serialize weights to HDF5
# model.save_weights("mass_roads_unet_weights.h5")
from keras.models import model_from_json
from keras.models import load_model

# Serialize model to JSON
model_json = model.to_json()

with open("../assets/models/mass_roads_unet.json", "w") as json_file:
    json_file.write(model_json)

# serialize weights to HDF5
# model.save_weights("mass_roads_unet_weights.h5")
# Serialize model to JSON # serialize weights to HDF5 # model.save_weights("mass_roads_unet_weights.h5")