Hi i’m trying to load my data using:
trainset = datasets.ImageFolder(root=traindir, transform=train_transform)
trainloader = torch.utils.data.DataLoader(trainset,
batch_size=args.batch_size,
shuffle=True,
num_workers=args.workers)
testset = datasets.ImageFolder(root=testdir, transform=transform)
testloader = torch.utils.data.DataLoader(testset,
batch_size=1000,
shuffle=True,
num_workers=args.workers)
And I’m getting this error:
FileNotFoundError: [Errno 2] No such file or directory: ‘data/cinic10-trainlarge/train/ship/n03859170_1073.png’
The error sounds pretty clear, the loader can’t find this file… but when I’m looking for this file he is there:
Any idea what am I missing?
Thanks.