Skip to content
Snippets Groups Projects
Unverified Commit 53c5a166 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

Merge pull request #319 from hellock/master

Bug fix for rpn proposal visualization
parents 5074eb1a 80a223da
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ class RPN(BaseDetector, RPNTestMixin):
# TODO: remove this restriction
return proposal_list[0].cpu().numpy()
def show_result(self, data, result, img_norm_cfg):
def show_result(self, data, result, img_norm_cfg, dataset=None, top_k=20):
"""Show RPN proposals on the image.
Although we assume batch size is 1, this method supports arbitrary
......@@ -84,4 +84,4 @@ class RPN(BaseDetector, RPNTestMixin):
for img, img_meta in zip(imgs, img_metas):
h, w, _ = img_meta['img_shape']
img_show = img[:h, :w, :]
mmcv.imshow_bboxes(img_show, result, top_k=20)
mmcv.imshow_bboxes(img_show, result, top_k=top_k)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment