What is Transfer Learning?
Big models such as MobileNet, ResNet and EfficientNet were trained on ImageNet, a dataset with over a million images in 1000 classes. They already know how to see edges, textures, shapes and objects. In transfer learning we borrow that knowledge and only teach the model our own small task.
Popular Pretrained Models
| Model | Size | Good for |
|---|---|---|
| MobileNetV2 | Small, fast | Phones, quick experiments |
| ResNet50 | Medium | Strong general baseline |
| EfficientNetB0 | Small, accurate | Good accuracy for the size |
| VGG16 | Large | Simple structure, learning purposes |
Step 1: Load the Base Model
Step 2: Add Your Own Classifier
preprocess_input function from the same model family.
Step 3: Train Only the New Layers
With the cats vs dogs data, validation accuracy typically jumps to around 95 percent or more after only a few epochs.
Why Is It So Good?
- The base model already recognizes fur, eyes, ears and shapes
- Only a few thousand new weights are trained, so there is little overfitting
- Training is quick, even on a CPU
When Does It Work Best?
| Your data | Strategy |
|---|---|
| Small and similar to ImageNet | Freeze the base, train a new head |
| Medium and somewhat different | Train the head, then fine-tune a few top layers |
| Large and very different | Fine-tune most layers or train from scratch |
Conclusion
Transfer learning is the most practical technique in computer vision. Use it as your first choice for any image project with limited data.

