How to distribute trained model?

Viewed 88

I want to distribute my trained deep-learning model which is made using Keras.

The partner want to use it without complicated environment construction, such as installing python, keras, etc...

How can I do this? Should I make an .exe file?

1 Answers

Maybe you want to look into this tutoiral.

Simplest code possible:

from keras.models import load_model

model.save('my_model.h5')  # creates a HDF5 file 'my_model.h5'

# returns a compiled model
# identical to the previous one
model = load_model('my_model.h5')
Related