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

AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path' #16

Closed
Melvin-leo opened this issue Jun 13, 2019 · 12 comments
Closed

Comments

@Melvin-leo
Copy link

Not being able to run with pretrained model. This is the error, not sure what checkpoint directory i must provide. I provided both the checkpoint directory and the individual files themselves all cannot work.

image

@Pay20Y
Copy link
Owner

Pay20Y commented Jun 13, 2019

You should create directory "checkpoints" and put the unzip file in it.

@Melvin-leo
Copy link
Author

Melvin-leo commented Jun 14, 2019

I did, are every files needed there in the github link for the pretrained model?

image

@Pay20Y
Copy link
Owner

Pay20Y commented Jun 14, 2019

Maybe a file named checkpoint is need. Look like this
图片

@Melvin-leo
Copy link
Author

I guessed the github link provided is not reliable. I created empty 'model.ckpt-44441' file and it does not work as well. Thanks for your quick response though!

@Pay20Y
Copy link
Owner

Pay20Y commented Jun 14, 2019

I mean that creat a empty file named checkpoint and This file has two lines
model_checkpoint_path: "model.ckpt-44441"
all_model_checkpoint_paths: "model.ckpt-44441"

@Melvin-leo
Copy link
Author

Melvin-leo commented Jun 14, 2019

Got it to work. Thanks !

@reorder-cv
Copy link

I am getting the same error, tried the methods suggested by still doesn't solve the problem.

@Pay20Y
Copy link
Owner

Pay20Y commented Jun 28, 2019

I am getting the same error, tried the methods suggested by still doesn't solve the problem.
I will check the code recently and upload a new trained model.

@pankSM
Copy link

pankSM commented Apr 6, 2020

First, I create directory "checkpoints" and put the unzip file in it.
Second, I creat a empty file named checkpoint and This file has two lines
model_checkpoint_path: "model.ckpt-44441"
all_model_checkpoint_paths: "model.ckpt-44441"
Finally, I put checkpoint into the directory "checkpoints".

@18829288698
Copy link

首先,我创建目录“ checkpoints”并将解压缩文件放入其中。
其次,我创建一个名为checkpoint的空文件,该文件有两行
model_checkpoint_path:“ model.ckpt-44441”
all_model_checkpoint_paths:“ model.ckpt-44441”
最后,我将checkpoint放入目录“ checkpoints”。
老师您好,请问第1步得解压缩文件指得是什么?第2步空文件写入的那两行是通过什么命令写进checkpoint文件?

@Pay20Y
Copy link
Owner

Pay20Y commented May 16, 2020

首先,我创建目录“ checkpoints”并将解压缩文件放入其中。
其次,我创建一个名为checkpoint的空文件,该文件有两行
model_checkpoint_path:“ model.ckpt-44441”
all_model_checkpoint_paths:“ model.ckpt-44441”
最后,我将checkpoint放入目录“ checkpoints”。
老师您好,请问第1步得解压缩文件指得是什么?第2步空文件写入的那两行是通过什么命令写进checkpoint文件?

您好,解压缩文件就是我提供的预训练模型的zip文件。写入空文件用一个文本编辑器写进去就可以,比如vim。推荐您使用dev分支下的代码和模型,里面不存在这个问题。

@18829288698
Copy link

18829288698 commented May 16, 2020 via email

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

5 participants