When running predict.py, I get this error.
2019-01-12 14:00:12.547769: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
File "C:/Users/Garrett/PycharmProjects/workkkk/predict.py", line 17, in
saver = tf.train.import_meta_graph(os.path.join(model_folder,'.meta')) #saver = tf.train.import_meta_graph(os.path.join(model_folder,'.meta'))
File "C:\Users\Garrett\PycharmProjects\workkkk\venv\lib\site-packages\tensorflow\python\training\saver.py", line 1674, in import_meta_graph
meta_graph_or_file, clear_devices, import_scope, **kwargs)[0]
File "C:\Users\Garrett\PycharmProjects\workkkk\venv\lib\site-packages\tensorflow\python\training\saver.py", line 1686, in _import_meta_graph_with_return_elements
meta_graph_def = meta_graph.read_meta_graph_file(meta_graph_or_file)
File "C:\Users\Garrett\PycharmProjects\workkkk\venv\lib\site-packages\tensorflow\python\framework\meta_graph.py", line 644, in read_meta_graph_file
text_format.Merge(file_content.decode("utf-8"), meta_graph_def)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbc in position 1: invalid start byte
When I ran the trainer, it saved a checkpoints.index, checkpoints.meta and checkpoints.data-00000-of-00001 file in my current working directory, not in the checkpoints folder. However, I saw that they needed to be named .meta, .index, and .data-00000-of-00001 for predict,py to work. It wouldn't let me change the file names directly, so I converted them to notepads, saved them as their correct names, and then converted them back to unknown files. I am able to reach the files inside checkpoints folder with predict.py now, but I get this decode error.
I think the trainer may have saved the files with wrong names in the first place because I changed model_save_name='checkpoints' in config.py to model_save_name='./checkpoints'. I did this because I would get an error running trainer.py: ValueError: Parent directory of checkpoints doesn't exist, can't save. Adding the "./" would allow the trainer to run without error, but this may be why the checkpoint files saved wrong.
It would be great if you could help me through this.
Thank you,
Garrett