Is there a way to load a image, rotate it and load it to MXNet model (e.g: yolov3).
I use the below method but I don't think it's efficient:
1/ Load the image and rotate it with pillow
image = Image.open(img_path)
image = image.rotate(90)
2/ Save the image and then load it with gluoncv
(I use yolo here so I used yolo.load_test):
#Save image
image.save(name +".png")
#Load image with gluoncv
imgs_for_inference, imgs_for_plot = gluoncv.data.transforms.presets.yolo.load_test(
images_names,
short=512)