← Journal

Transfer learning: an image classifier on a small dataset

Week 11

With only N images per class, training from scratch overfit immediately. I moved to a pretrained ResNet and replaced the final layer.

What I tried, in order

Result

Validation accuracy reached your accuracy. The confusion matrix showed two classes being mixed up, so I looked at the misclassified images and found mislabeled examples in the data. Cleaning those helped more than another round of tuning.