(box_xy, box_wh)
return K.concatenate([
        box_mins[..., 1:2],  # y_min
        box_mins[..., 0:1],  # x_min
        box_maxes[..., 1:2],  # y_max
        box_maxes[..., 0:1]  # x_max
    ])
Convert YOLO box predictions to bounding box corners.
Convert YOLO box predictions to bounding box corners.
Convert YOLO box predictions to bounding box corners .
def yolo_boxes_to_corners(box_xy, box_wh):
    """Convert YOLO box predictions to bounding box corners."""
    box_mins = box_xy - (box_wh / 2.)
    box_maxes = box_xy + (box_wh / 2.)

    return K.concatenate([
        box_mins[..., 1:2],  # y_min
        box_mins[..., 0:1],  # x_min
        box_maxes[..., 1:2],  # y_max
        box_maxes[..., 0:1]  # x_max
    ])
def yolo_boxes_to_corners ( box_xy , box_wh ) : box_mins = box_xy - ( box_wh / 2. ) box_maxes = box_xy + ( box_wh / 2. ) return K . concatenate ( [ box_mins [ ... , 1 : 2 ] , # y_min box_mins [ ... , 0 : 1 ] , # x_min box_maxes [ ... , 1 : 2 ] , # y_max box_maxes [ ... , 0 : 1 ] # x_max ] )