keras_to_tensorflow icon indicating copy to clipboard operation
keras_to_tensorflow copied to clipboard

Help have problem when converting keras file to Tensorflow file

Open yaxum opened this issue 6 years ago • 1 comments

I get this error when trying to convert the file from keras to TF. I have saved the keras file as model.save(filename.h5)....

I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 E0918 15:32:58.825695 10396 keras_to_tensorflow.py:95] Input file specified only holds the weights, and not the model definition. Save the model using model.save(filename.h5) which will contain the network architecture as well as its weights. If the model is saved using the model.save_weights(filename) function, either input_model_json or input_model_yaml flags should be set to to import the network architecture prior to loading the weights. Check the keras documentation for more details (https://keras.io/getting-started/faq/)

yaxum avatar Sep 18 '19 13:09 yaxum

I expect you to also get another error description besides the one pasted above. Can you share the rest of the error as well? Thanks.

amir-abdi avatar Sep 23 '19 22:09 amir-abdi