def bilinear_resize(image1, height, width): image = np.asarray(Image.open(image1)) img_height, img_width = image.shape[:2] resized = np.empty([height, width])