Comparison and Architecture of Pre-Trained Model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception - by Muhammad Abdullah - Medium
Comparison and Architecture of Pre-Trained Model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception - by Muhammad Abdullah - Medium
Get unlimited access to the best of Medium for less than $1/week. Become a member
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 1/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
Open in app
3
Search Write
Pre-trained models have become a staple in the field of deep learning,
achieving state-of-the-art results on a wide range of tasks. These models are
trained on massive datasets, such as ImageNet, and can then be fine-tuned
for specific applications. By leveraging the knowledge learned from these
massive datasets, pre-trained models can significantly improve the
performance of deep learning models on smaller datasets.
ResNet
GoogleNet
AlexNet
Inception
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 2/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
VGG-16 Architecture
Input -> Conv3–64 -> MaxPool -> Conv3–128 -> MaxPool -> Conv3–256 ->
Conv3–256 -> MaxPool -> Conv3–512 -> Conv3–512 -> MaxPool -> Conv3–512 -
> Conv3–512 -> MaxPool -> FC-4096 -> FC-4096 -> FC-1000 -> Output
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 3/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
VGG-16 Architecture
VGG-19 Architecture
Input -> Conv3–64 -> MaxPool -> Conv3–128 -> Conv3–128 -> MaxPool ->
Conv3–256 -> Conv3–256 -> Conv3–256 -> MaxPool -> Conv3–512 -> Conv3–
512 -> Conv3–512 -> MaxPool -> Conv3–512 -> Conv3–512 -> Conv3–512 ->
MaxPool -> FC-4096 -> FC-4096 -> FC-1000 -> Output
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 4/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
VGG-19 Architecture
ResNet
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 5/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
ResNet-50 Architecture
Input -> Conv1 -> BatchNorm -> ReLU -> MaxPool -> Conv2_x -> BatchNorm -
> ReLU -> Conv2_x -> BatchNorm -> ReLU -> Conv2_x -> BatchNorm -> ReLU
-> MaxPool -> Conv3_x -> BatchNorm -> ReLU -> Conv3_x -> BatchNorm ->
ReLU -> Conv3_x -> BatchNorm -> ReLU -> MaxPool -> Conv4_x ->
BatchNorm -> ReLU -> Conv4_x -> BatchNorm -> ReLU -> Conv4_x ->
BatchNorm -> ReLU -> MaxPool -> Conv5_x -> BatchNorm -> ReLU ->
Conv5_x -> BatchNorm -> ReLU -> Conv5_x -> BatchNorm -> ReLU -> AvgPool
-> FC-1000 -> Output.
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 6/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 7/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
ResNet-50 Architecture
GoogleNet
GoogleNet Architecture
Input -> Inception Module 1 -> Inception Module 2 -> Inception Module 3 ->
Inception Module 4 -> Inception Module 5 -> AvgPool -> FC-1000 -> Output
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 8/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
AlexNet
AlexNet is a CNN developed by Krizhevsky et al. (2012). AlexNet was the first
CNN to win the ImageNet Large Scale Visual Recognition Challenge
(ILSVRC). AlexNet is a relatively shallow network, with only 8 layers.
AlexNet Architecture
Input -> Conv1 -> MaxPool -> Conv2 -> MaxPool -> Conv3 -> Conv4 -> Conv5 -
> MaxPool -> FC-4096 -> FC-4096 -> FC-1000 -> Output
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 9/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
Inception
Inception v3 Architecture
Input -> Conv3–64 -> MaxPool -> Conv3–192 -> MaxPool -> Inception Module
3a -> Inception Module 3b -> Inception Module 4a -> Inception Module 4b ->
Inception Module 4c -> Inception Module 5a -> Inception Module 5b ->
AvgPool -> FC-1000 -> Output
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 10/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
Conclusion
The architectures of pre-trained models vary widely. However, they all share
the common goal of learning features from data. By understanding the
architectures of pre-trained models, you can better understand how they
work and how they can be used to solve a wide range of tasks.
6 Followers
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 11/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
3 51
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 12/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
53
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 13/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
3 min read · Dec 18, 2023 · 10 min read · Jan 21, 2024
100 4
Lists
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 14/15
6/9/24, 3:09 AM Comparison and Architecture of pre-trained model (VGG-16, VGG-19, ResNet, GoogleNet, AlexNet, Inception | by Muhammad Abd…
33 61
VGG Xception
In the world of CNNs (convolutional neural Xception, an abbreviation for “Extreme
networks), just like AlexNet is considered a… Inception,” represents a milestone in…
4 min read · Dec 31, 2023 2 min read · Dec 29, 2023
https://medium.com/@muhabd51/comparison-and-architecture-of-pre-trained-model-vgg-16-vgg-19-resnet-googlenet-alexnet-0fb459fff368 15/15