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

将Detector更换为cascade,会出现TypeError: _bbox_forward() missing 1 required positional argument: 'rois' #123

Open
lihuikenny opened this issue Nov 28, 2021 · 3 comments

Comments

@lihuikenny
Copy link

thirdparty/mmdetection-2.17.0/mmdet/models/roi_heads/test_mixins.py", line 89, in simple_test_bboxes
bbox_results = self._bbox_forward(x, rois)
TypeError: _bbox_forward() missing 1 required positional argument: 'rois'

怎么样快速修复这个问题呢?谢谢

@MendelXu
Copy link
Collaborator

MendelXu commented Nov 29, 2021

可以参考这个#106
我没想到比较优雅的实现方式。。

@lihuikenny
Copy link
Author

lihuikenny commented Nov 29, 2021 via email

@MendelXu
Copy link
Collaborator

其实是因为_bbox_forward函数需要显式地传入stage参数,你可以看看mmdetection里面cascade roi head的实现。

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