{"action":"created","issue":{"url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/161","repository_url":"https://api.github.com/repos/eragonruan/text-detection-ctpn","labels_url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/161/comments","events_url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/161/events","html_url":"https://github.com/eragonruan/text-detection-ctpn/issues/161","id":324761400,"number":161,"title":"AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'","user":{"login":"honghande","id":29244715,"avatar_url":"https://avatars2.githubusercontent.com/u/29244715?v=4","gravatar_id":"","url":"https://api.github.com/users/honghande","html_url":"https://github.com/honghande","followers_url":"https://api.github.com/users/honghande/followers","following_url":"https://api.github.com/users/honghande/following{/other_user}","gists_url":"https://api.github.com/users/honghande/gists{/gist_id}","starred_url":"https://api.github.com/users/honghande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honghande/subscriptions","organizations_url":"https://api.github.com/users/honghande/orgs","repos_url":"https://api.github.com/users/honghande/repos","events_url":"https://api.github.com/users/honghande/events{/privacy}","received_events_url":"https://api.github.com/users/honghande/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-21T01:26:25Z","updated_at":"2018-05-24T16:11:53Z","closed_at":null,"author_association":"NONE","body":"File \"/home/hjq/PycharmProjects/Tensorflow-OCR/text-detection-ctpn-master/ctpn/demo.py\", line 103, in <module>\r\n    raise 'Check your pretrained {:s}'.format(ckpt.model_checkpoint_path)\r\nAttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'"},"comment":{"url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/comments/391772273","html_url":"https://github.com/eragonruan/text-detection-ctpn/issues/161#issuecomment-391772273","issue_url":"https://api.github.com/repos/eragonruan/text-detection-ctpn/issues/161","id":391772273,"user":{"login":"Mary2333","id":39596477,"avatar_url":"https://avatars2.githubusercontent.com/u/39596477?v=4","gravatar_id":"","url":"https://api.github.com/users/Mary2333","html_url":"https://github.com/Mary2333","followers_url":"https://api.github.com/users/Mary2333/followers","following_url":"https://api.github.com/users/Mary2333/following{/other_user}","gists_url":"https://api.github.com/users/Mary2333/gists{/gist_id}","starred_url":"https://api.github.com/users/Mary2333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mary2333/subscriptions","organizations_url":"https://api.github.com/users/Mary2333/orgs","repos_url":"https://api.github.com/users/Mary2333/repos","events_url":"https://api.github.com/users/Mary2333/events{/privacy}","received_events_url":"https://api.github.com/users/Mary2333/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T16:11:53Z","updated_at":"2018-05-24T16:11:53Z","author_association":"NONE","body":"Hi, I met the same problem today, the problem is the ckpt is null, so the issue is occured.\r\ntry:\r\n        ckpt = tf.train.get_checkpoint_state(cfg.TEST.checkpoints_path)\r\n        print('Restoring from {}...'.format(ckpt.model_checkpoint_path), end=' ')\r\n        saver.restore(sess, ckpt.model_checkpoint_path)\r\n        print('done')\r\n    except:\r\n        raise 'Check your pretrained {:s}'.format(ckpt.model_checkpoint_path)\r\n\r\nI solved the issue by the following steps, and hope it's useful to you.\r\n\r\n1. new a directory and named checkpoints under text-detection-ctpn-master.\r\n2.download the checkpoins.zip file, and unzip it to the checkpoints directory.\r\n3.rerun, the issue is solved.\r\nGood luck!"}}
{"actor":{"display_login":"Mary2333"}}