请问这样的错误是什么问题?

来源:3-9 使用前端界面调用flask发布的ckpt模型(2)

jjboy

2019-08-25 16:52

D:\Anaconda3\envs\tfenv\python.exe "C:/Users/asus/Desktop/Python Learning/mnisttestdemo/mnist/main.py"

2019-08-25 16:51:30.438934: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

WARNING: Logging before flag parsing goes to stderr.

W0825 16:51:30.455873 13224 deprecation.py:323] From D:\Anaconda3\envs\tfenv\lib\site-packages\tensorflow\python\training\saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.

Instructions for updating:

Use standard file APIs to check for files with this prefix.


写回答 关注

1回答

  • qq_莫非
    2019-09-29 15:43:39
    WARNING:tensorflow:From D:/Python/workspace/Pybasis/minist/Handwritten_digit_main.py:11: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.WARNING:tensorflow:From D:\Python\Anaconda3\lib\site-packages\tensorflow\python\training\saver.py:1276: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.Instructions for updating:Use standard file APIs to check for files with this prefix.Traceback (most recent call last):  File "D:/Python/workspace/Pybasis/minist/Handwritten_digit_main.py", line 12, in <module>    saver.restore(sess,"data/regression.ckpt")  File "D:\Python\Anaconda3\lib\site-packages\tensorflow\python\training\saver.py", line 1278, in restore    compat.as_text(save_path))ValueError: The passed save_path is not a valid checkpoint: data/regression.ckptProcess finished with exit code 1


TensorFlow与Flask结合打造手写体数字识别

TensorFlow和flask结合识别自己的手写体数字

20428 学习 · 102 问题

查看课程

相似问题