Commit a04ed18a authored by Xinlei Chen's avatar Xinlei Chen Committed by Facebook Github Bot

Remove gt_boxes, seems no longer used?

Summary: Remove code that seems redundant.

Reviewed By: rbgirshick

Differential Revision: D8200163

fbshipit-source-id: c3096c77a1c6b33eab5dc0ceb9414f3bdbbf71e9
parent 278118fb
......@@ -89,12 +89,6 @@ def add_rpn_blobs(blobs, im_scales, roidb):
(entry['gt_classes'] > 0) & (entry['is_crowd'] == 0)
)[0]
gt_rois = entry['boxes'][gt_inds, :] * scale
# TODO(rbg): gt_boxes is poorly named;
# should be something like 'gt_rois_info'
gt_boxes = blob_utils.zeros((len(gt_inds), 6))
gt_boxes[:, 0] = im_i # batch inds
gt_boxes[:, 1:5] = gt_rois
gt_boxes[:, 5] = entry['gt_classes'][gt_inds]
im_info = np.array([[im_height, im_width, scale]], dtype=np.float32)
blobs['im_info'].append(im_info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment