bac11303e2776b57b730d4ffb5d41bc5ce34b079,mmdet/models/detectors/two_stage.py,TwoStageDetector,forward_train,#TwoStageDetector#Any#Any#Any#Any#Any#Any#Any#,75
Before Change
rois = bbox2roi([
torch.cat([pos, neg], dim=0)
for pos, neg in zip(pos_proposals, neg_proposals)
])
// TODO: a more flexible way to configurate feat maps
roi_feats = self.bbox_roi_extractor(
x[:self.bbox_roi_extractor.num_inputs], rois)
After Change
mask_targets = self.mask_head.get_target(
sampling_results, gt_masks, self.train_cfg.rcnn)
pos_labels = torch.cat(
[res.pos_gt_labels for res in sampling_results])
loss_mask = self.mask_head.loss(mask_pred, mask_targets,
pos_labels)
losses.update(loss_mask)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: open-mmlab/mmdetection
Commit Name: bac11303e2776b57b730d4ffb5d41bc5ce34b079
Time: 2018-10-17
Author: chenkaidev@gmail.com
File Name: mmdet/models/detectors/two_stage.py
Class Name: TwoStageDetector
Method Name: forward_train
Project Name: allenai/allennlp
Commit Name: 5f9fb419273f99c949ccdabab22fdc8e9b895c1c
Time: 2019-01-10
Author: andrew.p.moore94@gmail.com
File Name: allennlp/modules/stacked_bidirectional_lstm.py
Class Name: StackedBidirectionalLstm
Method Name: forward
Project Name: carpedm20/ENAS-pytorch
Commit Name: 97b1bc6bdceb8b6d0c3afde1a405d044c6d2cb46
Time: 2018-02-17
Author: carpedm20@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_controller