4febf34fc9f26832631bcaaf6e0938cab563db32,mmdet/models/dense_heads/atss_head.py,ATSSHead,get_bboxes,#ATSSHead#Any#Any#Any#Any#Any#Any#Any#,317
Before Change
mlvl_anchors = self.anchor_generator.grid_anchors(
featmap_sizes, device=device)
result_list = []
for img_id in range(len(img_metas)):
cls_score_list = [
cls_scores[i][img_id].detach() for i in range(num_levels)
]
bbox_pred_list = [
bbox_preds[i][img_id].detach() for i in range(num_levels)
]
centerness_pred_list = [
centernesses[i][img_id].detach() for i in range(num_levels)
]
img_shape = img_metas[img_id]["img_shape"]
scale_factor = img_metas[img_id]["scale_factor"]
proposals = self._get_bboxes_single(cls_score_list, bbox_pred_list,
centerness_pred_list,
mlvl_anchors, img_shape,
scale_factor, cfg, rescale,
with_nms)
result_list.append(proposals)
return result_list
def _get_bboxes_single(self,
cls_scores,
After Change
centerness_pred_list = [
centernesses[i].detach() for i in range(num_levels)
]
img_shapes = [
img_metas[i]["img_shape"] for i in range(cls_scores[0].shape[0])
]
scale_factors = [
img_metas[i]["scale_factor"] for i in range(cls_scores[0].shape[0])
]
result_list = self._get_bboxes(cls_score_list, bbox_pred_list,
centerness_pred_list, mlvl_anchors,
img_shapes, scale_factors, cfg, rescale,
with_nms)
return result_list
def _get_bboxes(self,
cls_scores,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 23
Instances
Project Name: open-mmlab/mmdetection
Commit Name: 4febf34fc9f26832631bcaaf6e0938cab563db32
Time: 2021-03-11
Author: 1286304229@qq.com
File Name: mmdet/models/dense_heads/atss_head.py
Class Name: ATSSHead
Method Name: get_bboxes
Project Name: open-mmlab/mmdetection
Commit Name: 4febf34fc9f26832631bcaaf6e0938cab563db32
Time: 2021-03-11
Author: 1286304229@qq.com
File Name: mmdet/models/dense_heads/yolo_head.py
Class Name: YOLOV3Head
Method Name: get_bboxes
Project Name: open-mmlab/mmdetection
Commit Name: 4febf34fc9f26832631bcaaf6e0938cab563db32
Time: 2021-03-11
Author: 1286304229@qq.com
File Name: mmdet/models/dense_heads/fcos_head.py
Class Name: FCOSHead
Method Name: get_bboxes
Project Name: open-mmlab/mmdetection
Commit Name: 4febf34fc9f26832631bcaaf6e0938cab563db32
Time: 2021-03-11
Author: 1286304229@qq.com
File Name: mmdet/models/dense_heads/atss_head.py
Class Name: ATSSHead
Method Name: get_bboxes