Hi! I have set up my model to download a total of 150 images. I end up with around 80 for each batch (no idea why). What bothers me is that when I pass my model to the data loader and train, the confussion matrix later tells me that there are around 30 images on my dataset. Why is this happening?
Your batch size is 64 (which is the default size). You can check this with dls.bs or learn.dls.bs.
The confusion matrix plots the model’s predictions, which is based off of the validation dataset. When creating your training and validation dataset, you put aside 20% of the dataset to be part of the validation dataset.