Training a network from scratch means relearning what an edge looks like — and someone already spent a thousand GPU-hours doing exactly that. This video freezes a pretrained ResNet's trunk, replaces the head with two fresh classes, and trains only 1,026 of its 11 million parameters. Measured on the same Tesla T4, it beats a from-scratch model by 29.41 points while training roughly 10,900 times fewer parameters.
What you'll learn:
• Loading a pretrained ResNet18 and freezing its trunk
• Swapping the original 1000-class head for a fresh 2-class head
• Training only the head — 1,026 of 11,177,538 total parameters
• The common mistake: forgetting to freeze, which overwrites the learned features
• The measured race: transfer learning 94.12% vs from-scratch 64.71% validation accuracy
• Why borrowed features beat starting from random weights
Chapters:
0:00 Intro & roadmap
1:15 Borrow the Features
2:56 Train Just the Head
4:10 Does It Beat From Scratch?
4:45 Recap & what's next
Playlists:
▶ Full course — Practical PyTorch (Tensors to Transformers): https://www.youtube.com/playlist?list=PLXMgPBl0Q1-w
▶ PyTorch for Computer Vision: https://www.youtube.com/playlist?list=PLMGwEfHy8VCk
Every number and curve on screen is a real measurement — this run trained on an NVIDIA Tesla T4 (torch 2.12.0+cu130), not asserted. Practical PyTorch teaches one idea per picture — for people who can already code and want to actually understand the framework.
#PyTorch #DeepLearning #ComputerVision #CNN #Python #TransferLearning #ResNet