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
- Freeze the backbone, train only the new head.
- Unfreeze the last block with a much lower learning rate.
- Add light augmentation: flips, small crops, colour jitter.
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.