Open tomguluson92 opened 6 years ago
The command i use is:
~/dev/keras_compressor$ keras-compressor.py --error 0.001 ./encoder.h5 ./compressed.h5
Same here with python 3.6.6, Keras 2.1.5, TensorFlow 1.8.0
I changed the following in the keras_compressor.py. You need to read your json file as well:
json_file = open(args.model.replace(".h5",".json"), 'r') loaded_model_json = json_file.read() json_file.close() model = model_from_json(loaded_model_json) model.load_weights(args.model)
Hi, I just use the command line as you mentioned, and raise this error.
My System Setting is:
Really Hope your reply, Thank you very much!