(img, C)
return img, ratio
formats an image for model prediction based on config
formats an image for model prediction based on config
formats an image for model prediction based on config
def format_img(img, C):
    """ formats an image for model prediction based on config """
    img, ratio = format_img_size(img, C)
    img = format_img_channels(img, C)
    return img, ratio
def format_img ( img , C ) : img , ratio = format_img_size ( img , C ) img = format_img_channels ( img , C ) return img , ratio