I get this result when I apply vgg.prepare() to the following image:
I use this line of code:
Image.fromarray(np.uint8(vgg.prepare(pep).reshape(224,224,3)))
And get an image which is combined of 9 copies of the given image:
Copyright © 2021 Jogjafile Inc.
I finally got what you did... the only mistake is
.reshape
.Because the image is transposed, not reshaped, you have to re-transpose to restore the original image.