I am loading images through DataLoader, to test them and get the accuracy, but the problem is Dataloader does not give me the file names so I understand which file was classified write and which one was wrong. how can I get the names? you can see the function I used
def get_all_images(data_location):
data = datasets.ImageFolder(data_location, transform=test_transforms)
classes = data.classes
loader = torch.utils.data.DataLoader(data,batch_size = len(data))
dataiter = iter(loader)
images, labels = dataiter.next()
return classes,images, labels