keras_to_tensorflow icon indicating copy to clipboard operation
keras_to_tensorflow copied to clipboard

General code to convert a trained keras model into an inference tensorflow model

Results 63 keras_to_tensorflow issues
Sort by recently updated
recently updated
newest added

I got this error while converting .h5 file to .pb file, but when BatchNormalizationV1 is removed while training the .h5 file is converted to .pb file successfully. Keras version 2.2.4...

I downloaded a pre trained Keras model from: https://github.com/fizyr/keras-retinanet/releases/download/0.4.1/resnet50_coco_best_v2.1.0.h5 Keras and Tensorflow version: ``` >>> import keras as k Using TensorFlow backend. >>> k.__version__ '2.2.0' >>> import tensorflow as tf...

Would it be possible to use the outputed .pb-file for mobile use by converting it like this ([How do you get a model you can use on mobile?] (https://www.tensorflow.org/lite/tfmobile/prepare_models))? What...

Thanks for all the work you've done! Any chance you have a suggestion for the following error? F:\keras_to_tensorflow>python keras_to_tensorflow.py --input_model="MobileNet.h5" --output_model="MobileNet.pb" Using TensorFlow backend. Traceback (most recent call last): File...

I used the keras model from https://github.com/qqwweee/keras-yolo3 I can successfully convert form .h to .pb. Output: > input args: Namespace(f=None, graph_def=False, input_fld='.', input_model_file='/home/bill/git/keras-yolo3/model_data/yolo.h5', num_outputs=1, output_fld='', output_graphdef_file='model.ascii', output_model_file='', output_node_prefix='output_node', quantize=False, theano_backend=False)...

Hi all, based on your experiences, is the converted pb model going to be faster than the h5 model during inference? I tested on my CPU and it shows pb...

Hello, I tried converting my .h5 file to a protobuf file I could use on ML-engine. I get the following error ``` Using TensorFlow backend. usage: keras_to_tensorflow.py [-h] [-input_fld INPUT_FLD]...

``` 132 for i in range(num_output): 133 pred_node_names[i] = args.output_node_prefix+str(i) # Here 134 pred[i] = tf.identity(net_model.outputs[i], name=pred_node_names[i]) 135 print('output nodes names are: ', pred_node_names) ``` Say I set the output_node_prefix...

Hi, I am trying to convert an h5 model created with keras 2.0.8 to pb and am getting the following error: > Traceback (most recent call last): > File "keras_to_tensorflow.py",...

hi, im coverting hdf5 to pb, so that i can use the model in android. but how do i know the input node name and output node name?