Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'model_checkpoint_path' #19

Closed
Wini1680 opened this issue Jul 5, 2018 · 3 comments
Closed

'NoneType' object has no attribute 'model_checkpoint_path' #19

Wini1680 opened this issue Jul 5, 2018 · 3 comments

Comments

@Wini1680
Copy link

Wini1680 commented Jul 5, 2018

您好,我在运行demo.py的时候出现的这个问题一直没有找到,请问有跑通的同胞们分享以下怎么解决这个问题呢?
File "/home/xshine6/Downloads/CHINESE-OCR/ctpn/ctpn/model.py", line 37, in load_tf_model reader = tf.train.NewCheckpointReader(ckpt.model_checkpoint_path) AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'

@Wini1680
Copy link
Author

Wini1680 commented Jul 9, 2018

更改了下checkpoint的路径就好了

@Wini1680 Wini1680 closed this as completed Jul 9, 2018
@pengcao
Copy link

pengcao commented Dec 12, 2018

CHINESE-OCR-master\ctpn\ctpn\model.py中的
/Users/xiaofeng/Code/Github/dataset/CHINESE_OCR/ctpn/ctpn_checkpoints/ 改成
/opt/CHINESE-OCR-master/ctpn/checkpoints/(这个根据md文件中的下载路径进行下载即可得到)

@OKhyc
Copy link

OKhyc commented Dec 17, 2018

不知道该怎么办了 我也已经改成/opt/CHINESE-OCR-master/ctpn/checkpoints/ 了 还是这个错,太累了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants