Functions | |
def | bbox_overlaps |
def | bbox_overlaps_py |
def | clip_boxes |
def | filter_boxes |
def | iou_pred |
def | iou_transform |
def | nonlinear_pred |
def | nonlinear_transform |
Variables | |
bbox_pred = nonlinear_pred | |
bbox_transform = nonlinear_transform |
def bbox.bbox_transform.bbox_overlaps | ( | boxes, | |
query_boxes | |||
) |
Definition at line 5 of file bbox_transform.py.
def bbox.bbox_transform.bbox_overlaps_py | ( | boxes, | |
query_boxes | |||
) |
determine overlaps between boxes and query_boxes :param boxes: n * 4 bounding boxes :param query_boxes: k * 4 bounding boxes :return: overlaps: n * k overlaps
Definition at line 9 of file bbox_transform.py.
def bbox.bbox_transform.clip_boxes | ( | boxes, | |
im_shape | |||
) |
Clip boxes to image boundaries. :param boxes: [N, 4* num_classes] :param im_shape: tuple of 2 :return: [N, 4* num_classes]
Definition at line 32 of file bbox_transform.py.
def bbox.bbox_transform.filter_boxes | ( | boxes, | |
min_size | |||
) |
filter small boxes. :param boxes: [N, 4* num_classes] :param min_size: :return: keep:
Definition at line 49 of file bbox_transform.py.
def bbox.bbox_transform.iou_pred | ( | boxes, | |
box_deltas | |||
) |
Transform the set of class-agnostic boxes into class-specific boxes by applying the predicted offsets (box_deltas) :param boxes: !important [N 4] :param box_deltas: [N, 4 * num_classes] :return: [N 4 * num_classes]
Definition at line 136 of file bbox_transform.py.
def bbox.bbox_transform.iou_transform | ( | ex_rois, | |
gt_rois | |||
) |
return bbox targets, IoU loss uses gt_rois as gt
Definition at line 130 of file bbox_transform.py.
def bbox.bbox_transform.nonlinear_pred | ( | boxes, | |
box_deltas | |||
) |
Transform the set of class-agnostic boxes into class-specific boxes by applying the predicted offsets (box_deltas) :param boxes: !important [N 4] :param box_deltas: [N, 4 * num_classes] :return: [N 4 * num_classes]
Definition at line 90 of file bbox_transform.py.
def bbox.bbox_transform.nonlinear_transform | ( | ex_rois, | |
gt_rois | |||
) |
compute bounding box regression targets from ex_rois to gt_rois :param ex_rois: [N, 4] :param gt_rois: [N, 4] :return: [N, 4]
Definition at line 61 of file bbox_transform.py.
Definition at line 173 of file bbox_transform.py.
Definition at line 172 of file bbox_transform.py.