Tushar Acharekar
Tushar Acharekar

Reputation: 900

How to generate HDF5/H5 file in Keras with existing Python project

I am trying to get HDF5/H5 file from existing project in keras.

this attention_ocr is related to OCR written in python. I would like to generate HDF5/H5 file so I can convert that with tensorflowjs_converter[ref] and will use in browser.

Reference:

I am looking for installing keras environment and generating HDF5/H5 file.

Upvotes: 0

Views: 1354

Answers (1)

Mark
Mark

Reputation: 539

Once your model is trained in keras, saving it as an HDF5 is simply one line:

my_model.save('my_filename.h5')

Upvotes: 3

Related Questions