kenneth_maanika:

c


Error is…

ValueError                                Traceback (most recent call last)
 in ()
4
5     #sample from the itterable object
----> 6     image, mask = next(dataloader_it)
7
8     plt.subplot(1,2,1)
5 frames
/usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py in to_tensor(pic)
62             pic = pic[:, :, None]
63
—> 64         img = torch.from_numpy(pic.transpose((2, 0, 1)))
65         # backward compatibility
66         if isinstance(img, torch.ByteTensor):
ValueError: some of the strides of a given numpy array are negative. This is currently not supported, but will be added in future releases.