C.W.K.
Stream
Lesson 02 of 07 · published

Keras Applications

~8 min · transfer

Level 0Keras 도제
0 XP0/97 lessons0/20 achievements
0/120 XP to next level120 XP to go0% complete

keras.applications 가 ImageNet pretrained CNN 의 한정된 셋 — ResNet, EfficientNet, MobileNet, VGG, DenseNet, Xception. model = keras.applications.ResNet50(weights='imagenet', include_top=False) — include_top=False 면 classifier head 제거 (custom head 붙이려고).

2024 년 이후 default 는 KerasHub 의 from_preset 패턴이 더 풍부 — Vision Transformer, EfficientNetV2, 더 최신 모델. keras.applications 는 backward-compat 으로 남아있지만 새 코드는 KerasHub 권장.

Code

# Load pretrained model (without classification head)
base_model = keras.applications.EfficientNetV2S(
    weights="imagenet",
    include_top=False,      # Remove classification layers
    input_shape=(224, 224, 3),
)

External links

Exercise

ResNet50 을 include_top=False 로 로드. (224,224,3) 입력의 출력 shape 출력. GlobalAveragePooling + Dense(num_classes) 위에 추가. model.summary() 합리적인지 확인.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.