(boxes, image_shape)
return boxes
Scales the predicted boxes in order to be drawable on the image
Scales the predicted boxes in order to be drawable on the image
Scales the predicted boxes in order to be drawable on the image
def scale_boxes(boxes, image_shape):
    """ Scales the predicted boxes in order to be drawable on the image"""
    height = image_shape[0]
    width = image_shape[1]
    image_dims = K.stack([height, width, height, width])
    image_dims = K.reshape(image_dims, [1, 4])
    boxes = boxes * image_dims
    return boxes
def scale_boxes ( boxes , image_shape ) : height = image_shape [ 0 ] width = image_shape [ 1 ] image_dims = K . stack ( [ height , width , height , width ] ) image_dims = K . reshape ( image_dims , [ 1 , 4 ] ) boxes = boxes * image_dims return boxes