0Pricing
Deep Learning Academy · درس

‏VGG: تكديس المرشحات الصغيرة

بناء العمق من كتل 3x3 بسيطة

‏VGG: تكديس المرشحات الصغيرة درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

One Filter Size to Rule

VGG made a bold bet: use only tiny 3x3 convolutions everywhere, and just stack a lot of them.

Why Small Wins

Two stacked 3x3 layers see the same area as one 5x5, but with fewer parameters and an extra nonlinearity in between.

Depth Over Width

Instead of fat layers, VGG chose to go deep, reaching 16 or 19 layers and learning richer feature hierarchies.

Uniform and Predictable

Every conv keeps the same padding and size, so shapes stay easy to reason about. This uniformity made VGG simple to copy.

Pool to Shrink

After each block of convs, a 2x2 max pool halves the spatial size while doubling the channel count.

import torch.nn as nn
pool = nn.MaxPool2d(kernel_size=2, stride=2)

A VGG Block

The repeating unit is conv, ReLU, conv, ReLU, pool. Chain these blocks and you have most of VGG.

import torch.nn as nn
block = nn.Sequential(nn.Conv2d(64, 128, 3, padding=1), nn.ReLU(), nn.MaxPool2d(2))

A Heavy Classifier Head

VGG ends with three large dense layers. They hold most of its weights, which is why the model is so big on disk.

The Memory Cost

That elegance has a price: VGG is slow and memory-hungry. Beauty in design did not mean cheap to run.

A Strong Feature Extractor

Even today, VGGs early layers make excellent reusable features for transfer learning and style transfer.

Build It with Loops

Because the pattern repeats, you can generate VGG from a config list, looping to add each layer programmatically.

cfg = [64, 64, "M", 128, 128, "M"]
# "M" means insert a max-pool here

The Lasting Lesson

VGGs gift was a clear principle: prefer many small filters over a few large ones. Modern nets still follow it.

Quick Check

Recall the central design choice behind VGG.

Recap: Small but Mighty

VGG proved that depth built from simple 3x3 blocks beats clever big filters. Simple, repeatable, and influential. Well done!

الأسئلة الشائعة

هل درس «‏VGG: تكديس المرشحات الصغيرة» مجاني؟

نعم — نص درس «‏VGG: تكديس المرشحات الصغيرة» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Deep Learning Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.

ماذا ستتعلم في «‏VGG: تكديس المرشحات الصغيرة»؟

بناء العمق من كتل 3x3 بسيطة تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟

لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «‏VGG: تكديس المرشحات الصغيرة»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟

نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. ‏LeNet وAlexNet: الانتصارات الأولى
  2. ‏VGG: تكديس المرشحات الصغيرة
  3. ‏ResNet: الاتصالات المتخطية تتعمق
  4. تحميل نماذج torchvision
← العودة إلى Deep Learning Academy