keras_to_tensorflow
keras_to_tensorflow copied to clipboard
General code to convert a trained keras model into an inference tensorflow model
Hi there, I used the `keras_to_tensorflow.py` to create a frozen `.pb` file which worked great, but when I create the file using *Quantize* the model doesn't work and throws **OOM**...
My keras=2.2.0, tensorflow=1.8.0 The file where the error occurred is my custom function, which was added to load_model, but why? Thank you for your answers. (cs) C:\Users\Administrator\Desktop\keras_to_tensorflow-master>python keras_to_t ensorflow.py --input_model="path/to/keras/my_model.h5"...
How to convert the Keras model which contain the custom layers like AnchorBoxes ?
I got such error: ValueError: Unknown loss function:softmax_cross_entropy_with_logits When I read my model, the code is: return load_model( run_archive_folder + game + '/run' + str(run_number).zfill(4) + "/models/version" + "{0:0>4}".format(version) +...
I am using anaconda and python 3 for converting model but getting issue like: E1108 14:25:02.245650 139965222659840 keras_to_tensorflow.py:77] Couldn't load model from json. Traceback (most recent call last): File "keras_to_tensorflow.py",...
I wonder if ATen is supported in Tensorflow. I would like to convert a Pytorch model which has an ATen operation to TensorFlow. I could convert the Pytorch model to...
Hi, I'm trying to convert my .h5 model to .json file on Ubuntu16.04 with keras==2.2.4 tensorflow-gpu==1.12.0. My .h5 model file can be download here: https://drive.google.com/open?id=1QVQiS4rsCuHFoQw-tarYLw6EqegIzMfD I get this error: Traceback...
I have a keras model where I trained YOLO v3 on custom dataset. Now I converted it to a tensorflow model using your script and am trying to make predictions...
Hi, Thanks for this code! Is there a way to use the code and convert the Keras model (.h5 file) to a .meta and .index files, to be read by...
Hi First of all, thanks for your work. I have a small problem and I do not know from where it comes from. I have used your code to convert...