How to show a image in jupyter notebook with pytorch easily?

you can look at my notebook here, but yea seems like no standard solution.

Basically, I do:

%matplotlib inline
def show(img):
    npimg = img.numpy()
    plt.imshow(np.transpose(npimg, (1,2,0)), interpolation='nearest')
12 Likes