def downsample_image(img): img_h, img_w, img_c = img.shape img = resize(img, (448 * img_h / img_w, 448)) return img