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

Detection problem when calling mmdection #7

Open
lilixj opened this issue Jul 3, 2020 · 2 comments
Open

Detection problem when calling mmdection #7

lilixj opened this issue Jul 3, 2020 · 2 comments

Comments

@lilixj
Copy link

lilixj commented Jul 3, 2020

Current Dataset: lmo
loading annotations into memory...
Done (t=0.00s)
creating index...
index created!
[ ] 0/95, elapsed: 0s, ETA:Traceback (most recent call last):
File "inference.py", line 170, in
main()
File "inference.py", line 162, in main
result_dict = single_gpu_test(model, data_loader)
File "inference.py", line 61, in single_gpu_test
result = model(return_loss=False, rescale=True, **data)
File "/home/zhuyu/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/zhuyu/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward
return self.module(*inputs[0], **kwargs[0])
File "/home/zhuyu/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/D/lxj/PoseEst/mmdetection-1.2.0/mmdet/core/fp16/decorators.py", line 49, in new_func
return old_func(*args, **kwargs)
TypeError: forward() missing 1 required positional argument: 'img_metas'

@lilixj
Copy link
Author

lilixj commented Jul 3, 2020

After I config mmdetection and it has been tested to work normally, when I execute "python inference lmo", I encounter above problem, does anyone know how to solve it or what the problem is?

@wangg12
Copy link
Collaborator

wangg12 commented Aug 21, 2020

The code requires mmdet version <= 1.0.0, so it may have some bug when using mmdet==1.2.

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