title: How can I convert a trained Tensorflow model to Keras?
body: <p>I have a trained Tensorflow model and weights vector which have been exported to protobuf and weights files respectively.</p>
  
  <p>How can I convert these to JSON or YAML and HDF5 files which can be used by Keras?</p>
  
  <p>I have the code for the Tensorflow model, so it would also be acceptable to convert the <code>tf.Session</code> to a keras model and save that in code.</p>