When I started learning PyTorch, it was very difficult for me to understand how to load data as batches in a model as different tutorials were using different techniques to load data. After digging a little bit more I got to know that, there are three ways of loading data in a PyTorch model, datasets.ImageFolder,creating a custom class for loading data, and downloading directly from torchvision datasets and using DataLoader. And this is because file structure and the arrangement of data are different in different casses. By that I mean, say you have the cat vs dog classification dataset, in...
[Read More]