I am working in a project that I have to make a dataset class. I already know that this class must has three methods: init(), getitem() and len().
The getitem() method recieve as a parameter an index of an image, for example. So, all preprocessing needed for the image is performed and in the end this preprocessed image is returned by the getitem() method.
My question is: if the dataloader is configured with batch=100. The getitem() method is called 100 times getting 100 images to generate the batch? I am asking this because the method getitem() receive just one index of an image. So, in my understanding this method returns only one image.
This is it.