(bboxes, img_shape, scale_factor, flip)
return new_bboxes
Map bboxes from testing scale to original image scale
Map bboxes from testing scale to original image scale
Map bboxes from testing scale to original image scale
def bbox_mapping_back(bboxes, img_shape, scale_factor, flip):
    """Map bboxes from testing scale to original image scale"""
    new_bboxes = bbox_flip(bboxes, img_shape) if flip else bboxes
    new_bboxes = new_bboxes / scale_factor
    return new_bboxes
def bbox_mapping_back ( bboxes , img_shape , scale_factor , flip ) : new_bboxes = bbox_flip ( bboxes , img_shape ) if flip else bboxes new_bboxes = new_bboxes / scale_factor return new_bboxes