def corners_to_wh(prediction_bboxes):
    """
    (x_left, y_left, x_right, y_right) --> (x_left, y_left, width, height)
    """
    prediction_bboxes[:, 2] = prediction_bboxes[:, 2] - prediction_bboxes[:, 0]
    prediction_bboxes[:, 3] = prediction_bboxes[:, 3] - prediction_bboxes[:, 1]

    return prediction_bboxes