import torchvision.transforms as transforms
data=torchvision.datasets.VOCSegmentation("./",download=True,transforms=transforms.Compose([transforms.ToTensor()]))
img,tar=data[0]
I get following error:
/usr/local/lib/python3.6/dist-packages/torchvision/datasets/voc.py in getitem(self, index)
205
206         if self.transforms is not None:
–> 207             img, target = self.transforms(img, target)
208
209         return img, target
TypeError: call() takes 2 positional arguments but 3 were given