Answers for "pytorch show image"

2

pytorch plt.imshow

plt.imshow(images[0].permute(1, 2, 0))
Posted by: Guest on May-21-2020
4

show image in python

from PIL import Image

#read the image
im = Image.open("sample-image.png")

#show image
im.show()
Posted by: Guest on November-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language