kerlomz / captcha_trainer

[验证码识别-训练] This project is based on CNN/ResNet/DenseNet+GRU/LSTM+CTC/CrossEntropy to realize verification code identification. This project is only for training the model.
Apache License 2.0
3.02k stars 821 forks source link

raise ValueError("Can't load save_path when it is None.") #45

Closed wuhuanlin08 closed 4 years ago

wuhuanlin08 commented 4 years ago

WARNING:tensorflow:ParseError: 1:24 : 'model_checkpoint_path: None': Expected string but found: 'None' WARNING:tensorflow:./projects/demo-CNNX-NoRecurrent-H64-CrossEntropy-C3/model/checkpoint: Checkpoint ignored INFO:tensorflow:None WARNING:tensorflow:ParseError: 1:24 : 'model_checkpoint_path: None': Expected string but found: 'None' WARNING:tensorflow:./projects/demo-CNNX-NoRecurrent-H64-CrossEntropy-C3/model/checkpoint: Checkpoint ignored Traceback (most recent call last): File "/Users/da/code_world/git/captcha_trainer/app.py", line 1332, in training_task self.current_task.train_process() File "/Users/da/code_world/git/captcha_trainer/trains.py", line 258, in train_process self.compile_graph(accuracy) File "/Users/da/code_world/git/captcha_trainer/trains.py", line 76, in compile_graph saver.restore(predict_sess, tf.train.latest_checkpoint(self.model_conf.model_root_path)) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1274, in restore raise ValueError("Can't load save_path when it is None.") ValueError: Can't load save_path when it is None.

vicmeng commented 1 year ago

这个问题解决了吗