np.asarray(Image)
Image.fromarray(np.uint8(ndarray))
----------------------------
1. https://github.com/pytorch/vision/blob/master/torchvision/transforms.py
2. https://www.daniweb.com/programming/software-development/code/216637/resize-an-image-python