Im following the example here 82, regarding torchvision.datasets.
In the example we have:
imagenet_data = torchvision.datasets.ImageFolder('path/to/imagenet_root/')
data_loader = torch.utils.data.DataLoader(imagenet_data,
                                          batch_size=,
                                          shuffle=True,
                                          num_workers=args.nThreads)

I am wondering if there is a way that I can know the number of images in data_loader? I want to check its size and see how many images is in it…
Thank you