Troubleshooting
Common pitfalls and issues and how to solve them
Issues with loading or publishing Keras or Tensorflow models

Last updated
Was this helpful?
Common pitfalls and issues and how to solve them

Last updated
Was this helpful?
Was this helpful?
# Assume our fitted model is '7-fi-1.hdf5'.
# Create the metadata for the model
import os
options_keras = {
"title": "Bandgap-7-fidelity-MP-JARVIS-1",
"short_name": "7-fi-1",
"authors": ["Scientist, Awesome"],
"servable": {
"type": "keras",
"model_path": "7-fi-1.hdf5",
"custom_objects": {"softplus2": softplus2,
"MEGNetLayer": MEGNetLayer,
"Set2Set": Set2Set},
"force_tf_keras": True
}
}
res = f.publish_model(options_keras)