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

训练问题请教 #22

Closed
zhangyuanxue opened this issue Dec 11, 2019 · 0 comments
Closed

训练问题请教 #22

zhangyuanxue opened this issue Dec 11, 2019 · 0 comments

Comments

@zhangyuanxue
Copy link

@你好,
执行python @@main.py时提示:
Traceback (most recent call last):
File "main.py", line 40, in
trainer.load_weights(trainer.find_last())
File "/home/passwd123123/zyx/DFANet/train.py", line 189, in find_last
"Could not find weight files in {}".format(dir_name))
FileNotFoundError: [Errno 2] Could not find weight files in ./log/dfanet20191211T1533

然后去看提示中的train.py文件最后发现是下面的checkpoint为空导致的:
# Find the last checkpoint
checkpoints = next(os.walk(dir_name))[2]
checkpoints = filter(lambda f: f.startswith("model"), checkpoints)
checkpoints = sorted(checkpoints)
if not checkpoints:
不知道这个checkpoints有什么用,是先要手动往./log/dfanet20191211T1533目录存放model文件吗?

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

1 participant