I created a custom dataset(ds) with all the transforms to torch datatype for the images. I do not want to transform a list passed thru the dataset.
When I pass the dataset(ds) thru the data loader
traindata=torch.utils.Dataloader(ds,shuffle=True)
for i, data in enumerate(traindata):
image,list=data[0],data[1]
The list gets transformed.
Expected List
[1]
Got List
[1 [torchLongTensor of size 1]]
How can I prevent such transformation in the Dataloader?