keras_to_tensorflow
keras_to_tensorflow copied to clipboard
General code to convert a trained keras model into an inference tensorflow model
Hello, I'm trying to convert Pb model to TFLite with following code: ``` converter = tf.contrib.lite.TocoConverter.from_saved_model(DIR_OUT + '/test') tflite_model = converter.convert() open("converted_model.tflite", "wb").write(tflite_model) ``` but there's an error: > RuntimeError:...
Hi All I converted the model successfully and without any error message, I also created the pbtxt file. However when I try to load the model using OpenCV I am...
Traceback (most recent call last): File "totensor.py", line 173, in app.run(main) File "C:\Users\Lenovo\Anaconda3\lib\site-packages\absl\app.py", line 299, in run _run_main(main, args) File "C:\Users\Lenovo\Anaconda3\lib\site-packages\absl\app.py", line 250, in _run_main sys.exit(main(argv)) File "totensor.py", line 116,...
I saved a tensorflow keras sequential model, and then tried the keras_to_tensorflow and got: Unknown initializer: GlorotUniform
ValueError: Unknown initializer: GlorotUniform
ValueError: Cannot find the variable that is an input to the ReadVariableOp.
I am using the same code for converting to .pb from .hdf5 format. And I am getting the error 'No model found in config file.'. What can be the issue
After it's turned into a pb file,The following error occurred using the command `saved_model_cli show --dir all`to view the network structure ``` Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/bin/saved_model_cli", line...
@amir-abdi Thanks for your nice repository Is it necessary to use flag! if it not necessary please through out it!! Thanks
Trying to find the key graph operations, and I am not finding an easy way to find the training operation. I added the following code to your python script from...