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

使用多卡训练的时候添加“--validate”参数, #120

Open
sunpeng96 opened this issue Nov 23, 2021 · 1 comment
Open

使用多卡训练的时候添加“--validate”参数, #120

sunpeng96 opened this issue Nov 23, 2021 · 1 comment

Comments

@sunpeng96
Copy link

sunpeng96 commented Nov 23, 2021

image
TypeError: init() got an unexpected keyword argument 'gt_dir'
image
去掉evaluation就可以运行
寻找原因是代码无法转到DOTADataset中的evaluate,请问有人遇到这样的问题嘛,如何解决

@soHardToHaveAName
Copy link

去掉evaluation就可以运行 寻找原因是代码无法转到DOTADataset中的evaluate,请问有人遇到这样的问题嘛,如何解决

遇到了同样的问题。

作者在 mmdet/core/evaluation/eval_hooks.py 文件中定义了 DistEvalHook 验证类:

class DistEvalHook(Hook):

    def __init__(self, dataset, interval=1):

但是这个__init__方法中并没有接收 gt_dir 和 imagesetfile 参数,所以就报错了

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

2 participants