a6236b789b8f4e2e66c8379199f40ecef9afce06,mmdet/core/anchor/anchor_generator.py,AnchorGenerator,valid_flags,#AnchorGenerator#Any#Any#Any#,84
Before Change
valid_x[:valid_w] = 1
valid_y[:valid_h] = 1
valid_xx, valid_yy = self._meshgrid(valid_x, valid_y)
valid = valid_xx & valid_yy
valid = valid[:,
None].expand(valid.size(0),
self.num_base_anchors).contiguous().view(-1)
return valid
After Change
anchor_stride = self.strides[i]
feat_h, feat_w = featmap_sizes[i]
h, w = pad_shape[:2]
valid_feat_h = min(int(np.ceil(h / anchor_stride)), feat_h)
valid_feat_w = min(int(np.ceil(w / anchor_stride)), feat_w)
flags = self.single_level_valid_flags((feat_h, feat_w),
(valid_feat_h, valid_feat_w),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: open-mmlab/mmdetection
Commit Name: a6236b789b8f4e2e66c8379199f40ecef9afce06
Time: 2020-04-21
Author: 40779233+ZwwWayne@users.noreply.github.com
File Name: mmdet/core/anchor/anchor_generator.py
Class Name: AnchorGenerator
Method Name: valid_flags
Project Name: batra-mlp-lab/visdial-challenge-starter-pytorch
Commit Name: 0cef773c66b325e84900474688a7b0f4f4663f93
Time: 2018-07-26
Author: karandesai281196@gmail.com
File Name: utils/eval_utils.py
Class Name:
Method Name: get_gt_ranks
Project Name: NVIDIA/sentiment-discovery
Commit Name: 7130245fb45db86263963fe237b40ce1f5b06c73
Time: 2018-11-28
Author: raulp@nvidia.com
File Name: finetune.py
Class Name:
Method Name: get_supervised_batch