Skip to content

Commit 420c91e

Browse files
committed
Merge branch 'master' of github.com:open-mmlab/mmdetection
2 parents 251c429 + 3ad05dc commit 420c91e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mmdet/datasets/coco.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ def prepare_test_img(self, idx):
280280
raise AssertionError(
281281
'proposals should have shapes (n, 4) or (n, 5), '
282282
'but found {}'.format(proposal.shape))
283+
else:
284+
proposal = None
283285

284286
def prepare_single(img, scale, flip, proposal=None):
285287
_img, img_shape, pad_shape, scale_factor = self.img_transform(

0 commit comments

Comments
 (0)