I have a trained model saved in 3 files and some tensorflow (1.x) code lines to use it. I need to convert the model to .h5 (keras), in order to import it in Matlab.
The model is saved in 3 files:
- xxx.ckpt.data-00000-of-00001
- xxx.ckpt.index
- xxx.ckpt.meta
The tensorflow code lines is like:
zzz = "a function of the previous line"
session_name = "a function of xxx"
sess = tf.Session()
saver = tf.train.Saver()
saver.restore(sess,session_name)
output=sess.run(zzz, ...)
Is it possible to export the trained network to a H5 file? If yes, how to do it?
ADD: I've asked to a friend, and appartenly it is not possible directly because, first, I have to "translate" the network stucture in Keras. This step is too hard for my level in the domain.