Course contentsShow
← Machine Learning and Deep Learning
Lesson 910 of 3,53821. CNN ArchitecturesFree lesson

ResNet Family: 18, 34, 50, 101, 152

Understanding the progression of ResNet depths and when to use each variant.

ResNet Family: 18, 34, 50, 101, 152

What you'll learn: How to choose the right ResNet variant based on your task complexity and computational resources.

The ResNet Lineup

The ResNet family offers five standard configurations, each named by the total number of layers: ResNet-18, ResNet-34, ResNet-50, ResNet-101, and ResNet-152. Think of them as increasingly powerful telescopes—the deeper models can capture more subtle patterns, but require more resources to operate.

Shallow vs Deep Variants

ResNet-18 and ResNet-34 use basic residual blocks (two 3×3 convolutions per block). These are:

  • Faster to train
  • Lower memory footprint
  • Suitable for smaller datasets or when computational resources are limited
  • Good starting points for transfer learning experiments

ResNet-50, ResNet-101, and ResNet-152 use bottleneck blocks (1×1 → 3×3 → 1×1 convolutions). These are:

  • More parameter-efficient despite being deeper
  • Better feature representations for complex tasks
  • Industry standard for ImageNet and large-scale vision problems
  • Higher accuracy but slower inference

When to Use Each Variant

  • ResNet-18/34: Prototyping, edge deployment, real-time applications, or datasets with <100k images
  • ResNet-50: The default choice—excellent accuracy/efficiency trade-off for most production systems
  • ResNet-101/152: When you need maximum accuracy, have massive datasets (millions of images), and computational cost isn't the primary concern

The performance gap between variants narrows on smaller datasets due to overfitting risks with deeper networks.

Key Takeaway: ResNet-18/34 use basic blocks for speed; ResNet-50/101/152 use bottleneck blocks for efficiency at depth. Start with ResNet-50 for general tasks, scale down for speed or up for maximum accuracy.