C.W.K.
Stream
Lesson 05 of 06 · published

Common CNN Architectures

~10 min · resnet, efficientnet, mobilenet, convnext

Level 0Level 0
0 XP0/78 lessons0/17 achievements
0/100 XP to next level100 XP to go0% complete

The architectures you should recognize

Knowing the canonical architectures helps you pick the right backbone and read other people's code without confusion.

ArchitectureYearKey ideaUse when
ResNet2015Skip connections enable very deep netsSolid default; 50/101/152 layers
MobileNetV2/V32018-19Depthwise separable convMobile / edge deployment
EfficientNetV22021Compound scaling of depth/width/resolutionState-of-art accuracy/cost balance
ConvNeXt2022CNN tuned with transformer training tricksPure-CNN baseline competitive with ViT
ViT (Vision Transformer)2020Self-attention over image patchesLarge datasets, very large models

All of these are available pretrained via keras.applications or keras_cv.models. For most projects, EfficientNetV2-S is a strong default — best accuracy-per-FLOP tradeoff for mid-range hardware.

Code

Pretrained 모델 즉시 사용·python
import keras

# ImageNet-pretrained classifiers (full top layer)
resnet = keras.applications.ResNet50(weights='imagenet')
mobilenet = keras.applications.MobileNetV3Small(weights='imagenet')
efficientnet = keras.applications.EfficientNetV2S(weights='imagenet')

# Backbone only (no classifier head) — for transfer learning
backbone = keras.applications.EfficientNetV2S(
    weights='imagenet',
    include_top=False,
    input_shape=(224, 224, 3),
)

# Inference on a single image
import tensorflow as tf
img = tf.keras.utils.load_img("cat.jpg", target_size=(224, 224))
img_array = tf.keras.utils.img_to_array(img)
img_batch = tf.expand_dims(img_array, 0)
preds = resnet.predict(img_batch)
print(keras.applications.resnet50.decode_predictions(preds, top=5))

External links

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.