(bboxes, img_shape, scale_factor, flip)
return new_bboxes
Map bboxes from the original image scale to testing scale
Map bboxes from the original image scale to testing scale
Map bboxes from the original image scale to testing scale
def bbox_mapping(bboxes, img_shape, scale_factor, flip):
    """Map bboxes from the original image scale to testing scale"""
    new_bboxes = bboxes * scale_factor
    if flip:
        new_bboxes = bbox_flip(new_bboxes, img_shape)
    return new_bboxes
def bbox_mapping ( bboxes , img_shape , scale_factor , flip ) : new_bboxes = bboxes * scale_factor if flip : new_bboxes = bbox_flip ( new_bboxes , img_shape ) return new_bboxes