427c890279004ecf6923e886baccf464af139945,mmdet/models/detectors/two_stage.py,TwoStageDetector,simple_test,#TwoStageDetector#Any#Any#Any#Any#,116
Before Change
x = self.extract_feat(img)
if proposals is None:
proposals = self.simple_test_rpn(x, img_meta)
if self.with_bbox:
// BUG proposals shape?
det_bboxes, det_labels = self.simple_test_bboxes(
x, img_meta, [proposals], rescale=rescale)
bbox_result = bbox2result(det_bboxes, det_labels,
self.bbox_head.num_classes)
return bbox_result
else:
proposals[:, :4] /= img_meta["scale_factor"].float()
return proposals.cpu().numpy()
def aug_test(self, imgs, img_metas, rescale=False):
Test with augmentations.
If rescale is False, then returned bboxes and masks will fit the scale
After Change
def simple_test(self, img, img_meta, proposals=None, rescale=False):
Test without augmentation.
assert proposals == None, "Fast RCNN hasn"t been implemented."
assert self.with_bbox, "Bbox head must be implemented."
x = self.extract_feat(img)
proposal_list = self.simple_test_rpn(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: open-mmlab/mmdetection
Commit Name: 427c890279004ecf6923e886baccf464af139945
Time: 2018-09-25
Author: pjmzju@gmail.com
File Name: mmdet/models/detectors/two_stage.py
Class Name: TwoStageDetector
Method Name: simple_test
Project Name: dmlc/dgl
Commit Name: bb6a64763e9a8e64f27bf5f380b62672665d692d
Time: 2020-01-08
Author: classicxsong@gmail.com
File Name: apps/kg/train_mxnet.py
Class Name:
Method Name: load_model
Project Name: lanpa/tensorboardX
Commit Name: 92e275004b35b21633107d6f34a4dcccbc5c9fce
Time: 2017-09-04
Author: huang.dexter@gmail.com
File Name: tensorboardX/summary.py
Class Name:
Method Name: image