You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@你好,
执行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文件吗?
The text was updated successfully, but these errors were encountered:
@你好,
执行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文件吗?
The text was updated successfully, but these errors were encountered: