Skip to content

Commit

Permalink
Merge pull request #17 from hellock/dev
Browse files Browse the repository at this point in the history
minor fix for fast rcnn
  • Loading branch information
hellock authored Oct 11, 2018
2 parents 8e5bfd8 + 0ee5654 commit 3c51dcc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions configs/fast_mask_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
size_divisor=32,
proposal_file=data_root + 'proposals/train2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_train2017.pkl',
flip_ratio=0.5,
with_mask=True,
with_crowd=True,
Expand All @@ -85,7 +85,7 @@
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
proposal_file=data_root + 'proposals/val2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
size_divisor=32,
flip_ratio=0,
with_mask=True,
Expand All @@ -97,7 +97,7 @@
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
proposal_file=data_root + 'proposals/val2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
size_divisor=32,
flip_ratio=0,
with_mask=False,
Expand Down
6 changes: 3 additions & 3 deletions configs/fast_rcnn_r50_fpn_1x.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
size_divisor=32,
proposal_file=data_root + 'proposals/train2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_train2017.pkl',
flip_ratio=0.5,
with_mask=False,
with_crowd=True,
Expand All @@ -71,7 +71,7 @@
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
proposal_file=data_root + 'proposals/val2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
size_divisor=32,
flip_ratio=0,
with_mask=False,
Expand All @@ -83,7 +83,7 @@
img_prefix=data_root + 'val2017/',
img_scale=(1333, 800),
img_norm_cfg=img_norm_cfg,
proposal_file=data_root + 'proposals/val2017_r50_fpn_rpn_1x.pkl',
proposal_file=data_root + 'proposals/rpn_r50_fpn_1x_val2017.pkl',
size_divisor=32,
flip_ratio=0,
with_mask=False,
Expand Down
1 change: 0 additions & 1 deletion mmdet/models/detectors/two_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def forward_train(self,

def simple_test(self, img, img_meta, proposals=None, rescale=False):
"""Test without augmentation."""
assert proposals is None, "Fast RCNN hasn't been implemented."
assert self.with_bbox, "Bbox head must be implemented."

x = self.extract_feat(img)
Expand Down

0 comments on commit 3c51dcc

Please sign in to comment.