nickliqian / cnn_captcha

use cnn recognize captcha by tensorflow. 本项目针对字符型图片验证码,使用tensorflow实现卷积神经网络,进行验证码识别。
Apache License 2.0
2.78k stars 781 forks source link

执行【python3 train_model.py】时提示NotFoundError #131

Open rlysyy opened 4 years ago

rlysyy commented 4 years ago

提示以下错误: NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for model

运行环境是虚拟机的ubuntu18,python3.6版本,tensorflow cpu版本

rlysyy commented 4 years ago

Tensorflow版本是1.14

rlysyy commented 4 years ago

百度之后做了如下修正程序可以正常执行了。说是没有指定还原点

saver.restore(sess, tf.train.latest_checkpoint(self.model_save_dir))

saver.restore(sess, self.model_save_dir)