I have a pytorch tensor, let’s say images, of type <class 'torch.Tensor'> and of size torch.Size([32, 3, 300, 300]), so that images[i, :, :, :] represents the i-th out of 32 rgb 300x300 images.
I would like to plot some of these images, let’s say the first one, i.e., images[0, :, :, :] using opencv (cv2.imshow()). Could you help? Thank you!