PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling (CNN: कनवोल्यूशन लेयर्स, पूलिंग (Max Pooling) और कंप्यूटर विजन) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।
Overview: Convolutional Neural Networks (CNNs) process grid-structured data such as images using learnable spatial filters (kernels), local receptive fields, weight sharing, and downsampling pooling layers. This design dramatically reduces parameter counts compared to dense MLPs while learning translation-equivariant feature hierarchies from edges to full objects.
अध्याय सार: कनवोल्यूशनल न्यूरल नेटवर्क (CNN) लर्नेबल स्थानिक फिल्टर्स (कनेल्स), लोकल रिसेप्टिव फील्ड्स, वेट शेयरिंग और पूलिंग लेयर्स का उपयोग करके इमेज जैसे ग्रिड डेटा को प्रोसेस करते हैं। यह संरचना डेंस MLP की तुलना में पैरामीटर्स की संख्या को भारी मात्रा में कम करती है और किनारों से लेकर पूर्ण वस्तुओं तक पदानुक्रमित फीचर्स सीखती है।
Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling: Detailed Notes & Architecture (CNN: कनवोल्यूशन लेयर्स, पूलिंग (Max Pooling) और कंप्यूटर विजन)
1. 2D Convolution Operation, Stride, and Padding (2D कनवोल्यूशन ऑपरेशन, स्ट्राइड और पैडिंग)
[EN] In a CNN layer, a small learnable filter (kernel) of size K x K x C_in slides across the height and width of an input tensor, computing element-wise dot products plus a bias to generate a 2D feature map. Stride (S) specifies how many pixels the filter jumps at each step, while Zero Padding (P) adds P rows/columns of zeros around borders to preserve spatial dimensions and border features. The exact output spatial dimension is O = floor((W - K + 2*P) / S) + 1. Valid padding sets P = 0 (shrinking output size), whereas Same padding chooses P = (K - 1) / 2 (for odd K and S = 1) so output height and width match the input.
[HI] CNN लेयर में K x K x C_in आकार का एक छोटा लर्नेबल फिल्टर (कर्नेल) इनपुट टेंसर की ऊंचाई और चौड़ाई पर स्लाइड होकर डॉट प्रोडक्ट व बायस द्वारा 2D फीचर मैप बनाता है। स्ट्राइड (S) तय करता है कि फिल्टर एक बार में कितने पिक्सेल आगे बढ़ेगा, जबकि ज़ीरो पैडिंग (P) किनारों की जानकारी बचाने के लिए बॉर्डर पर शून्य जोड़ती है। आउटपुट आकार का सटीक सूत्र O = floor((W - K + 2*P) / S) + 1 है। वैलिड पैडिंग में P = 0 होता है, जबकि सेम (Same) पैडिंग में S = 1 पर आउटपुट आकार इनपुट के बराबर रखने के लिए P = (K - 1) / 2 चुना जाता है।
2. Local Receptive Fields, Weight Sharing, and 1x1 Convolutions (लोकल रिसेप्टिव फील्ड्स, वेट शेयरिंग और 1x1 कनवोल्यूशन)
[EN] Unlike dense layers where every pixel connects to every hidden neuron, each CNN neuron examines only a local K x K neighborhood (receptive field) exploiting spatial correlation. Because the same kernel weights slide over all locations (weight sharing), a single 3x3 filter on a 3-channel RGB image needs only (3*3*3 + 1) = 28 parameters regardless of whether the image is 32x32 or 1024x1024. This yields translation equivariance: shifting an object in the input shifts its activation pattern identically in the feature map. Modern architectures also use 1x1 convolutions (Network-in-Network / Inception bottlenecks) to mix information across channels and reduce channel depth cheaply.
[HI] डेंस लेयर्स के विपरीत, CNN में प्रत्येक न्यूरॉन केवल एक स्थानीय K x K क्षेत्र (रिसेप्टिव फील्ड) को देखता है। एक ही कर्नेल पूरे चित्र पर साझा (weight sharing) होने के कारण 3-चैनल RGB इमेज पर 3x3 फिल्टर को चित्र के आकार से परे केवल (3*3*3 + 1) = 28 पैरामीटर्स चाहिए। इससे ट्रांसलेशन इक्विवेरियंस प्राप्त होता है—इनपुट में वस्तु के खिसकने पर फीचर मैप का पैटर्न भी उसी के अनुरूप खिसकता है। आधुनिक नेटवर्क चैनलों को मिलाने और चैनल गहराई कम करने के लिए 1x1 कनवोल्यूशन का उपयोग भी करते हैं।
3. Pooling Layers: Max Pooling, Average Pooling, and GAP (पूलिंग लेयर्स: मैक्स पूलिंग, एवरेज पूलिंग और GAP)
[EN] Pooling layers progressively downsample spatial feature maps, cutting computation and memory while providing mild local translation invariance. Max Pooling takes the largest activation inside each window (e.g., 2x2 with stride 2 halves height and width, discarding 75% of spatial elements) to preserve dominant edge/texture signals. Average Pooling computes the arithmetic mean per window, while Global Average Pooling (GAP) collapses an entire H x W feature map into a single scalar per channel. Crucially, standard Max and Average Pooling layers have zero learnable parameters.
[HI] पूलिंग लेयर्स फीचर मैप्स के स्थानिक आकार को धीरे-धीरे कम करती हैं जिससे गणना घटती है और स्थानीय ट्रांसलेशन इनवेरियंस मिलता है। मैक्स पूलिंग प्रत्येक विंडो (जैसे 2x2, स्ट्राइड 2) में से अधिकतम मान चुनती है, जिससे ऊंचाई और चौड़ाई आधी हो जाती है और प्रमुख फीचर सुरक्षित रहते हैं। एवरेज पूलिंग विंडो का औसत लेती है, जबकि ग्लोबल एवरेज पूलिंग (GAP) पूरे H x W फीचर मैप को प्रति चैनल एक संख्या में समेट देती है। महत्वपूर्ण बात यह है कि मानक मैक्स और एवरेज पूलिंग लेयर्स में शून्य लर्नेबल पैरामीटर्स होते हैं।
4. Classic CNN Architectures: LeNet-5, AlexNet, VGG, and ResNet (प्रमुख CNN आर्किटेक्चर: LeNet-5, AlexNet, VGG और ResNet)
[EN] Yann LeCun's LeNet-5 (1998) pioneered Conv-Pool-FC stacks for handwritten digit recognition, and AlexNet (Krizhevsky et al., 2012) ignited the deep learning boom on ImageNet using ReLU, Dropout, and dual GPUs. VGG-16 (2014) demonstrated that stacking compact 3x3 kernels matches larger receptive fields with fewer parameters and deeper non-linearity. To train ultra-deep 50- to 152-layer networks without accuracy degradation, ResNet (He et al., 2015) introduced residual skip connections computing H(x) = F(x) + x. At the end of the feature extractor, feature maps pass through Flatten or GAP into a Dense Softmax classification head.
[HI] यान लेकुन के LeNet-5 (1998) ने हस्तलिखित अंक पहचान के लिए Conv-Pool-FC की नींव रखी और AlexNet (2012) ने ReLU, Dropout व GPU के साथ ImageNet में क्रांति ला दी। VGG-16 (2014) ने दिखाया कि बड़े फिल्टर्स के बजाय छोटे 3x3 कर्नेल्स को स्टैक करना अधिक प्रभावी है। 50 से 152 लेयर्स तक गहरे नेटवर्क को बिना प्रदर्शन गिरावट के ट्रेन करने के लिए ResNet (2015) ने रेसिडुअल स्किप कनेक्शन H(x) = F(x) + x पेश किया। अंत में फीचर मैप्स को Flatten या GAP द्वारा डेंस सॉफ्टमैक्स क्लासिफायर लेयर में भेजा जाता है।
Syntax, Formula & Technical Example (Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling)
# Valid 2D Convolution (3x3 kernel on 4x4 input) + 2x2 Max Pooling
img = [[1,2,0,1], [4,1,3,2], [0,2,1,0], [1,3,2,4]]
kern = [[1,0,-1], [1,0,-1], [1,0,-1]] # Vertical edge filter
fmap = []
for r in range(2):
row = []
for c in range(2):
val = sum(img[r+i][c+j]*kern[i][j] for i in range(3) for j in range(3))
row.append(val)
fmap.append(row) # fmap = [[1, 2], [2, -1]]
max_pool_2x2 = max(max(r) for r in fmap) # Outputs 2
Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling Quick Reference & Comparison Table
| CNN Component | Operational Mechanism | Key Exam Fact |
|---|---|---|
| Convolution Kernel (Filter) | Learnable KxKxC_in weight matrix sliding across input | Weight sharing cuts parameter count vastly |
| Zero Padding (P) | Adds P zero pixels around input spatial borders | Same padding preserves input height & width |
| Max Pooling | Outputs maximum value inside each KxK window | Has 0 learnable parameters; downsamples size |
| Residual Skip Connection | Adds block input directly to output: F(x) + x | Solves degradation in very deep ResNets |
Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling Top 20 Bilingual MCQs with Answers
Q1. An input image of size 32x32 is convolved with a 5x5 filter using stride S = 1 and padding P = 0. What is the output spatial size?
(32x32 आकार की इनपुट इमेज पर S = 1 और P = 0 के साथ 5x5 फिल्टर लगाने पर आउटपुट का स्थानिक आकार क्या होगा?)
(A) 27 x 27
(B) 32 x 32
(C) 28 x 28
(D) 30 x 30
Correct Answer: (C)
[EN] Using floor((W - K + 2P)/S) + 1 = (32 - 5 + 0)/1 + 1 = 28.
[HI] सूत्र floor((W - K + 2P)/S) + 1 = (32 - 5 + 0)/1 + 1 = 28 से आउटपुट 28 x 28 प्राप्त होता है।
Q2. For a 64x64 input and a 3x3 kernel with stride S = 1, what padding P gives 'Same' output spatial size (64x64)?
(64x64 इनपुट और 3x3 कर्नेल (स्ट्राइड S = 1) के लिए 'Same' आउटपुट आकार (64x64) पाने हेतु पैडिंग P क्या होनी चाहिए?)
(A) P = 2
(B) P = 1
(C) P = 0
(D) P = 3
Correct Answer: (B)
[EN] P = (K - 1) / 2 = (3 - 1) / 2 = 1 gives (64 - 3 + 2)/1 + 1 = 64.
[HI] P = (K - 1) / 2 = (3 - 1) / 2 = 1 रखने पर (64 - 3 + 2)/1 + 1 = 64 मिलता है।
Q3. How many trainable parameters (including biases) are in a Conv2D layer with 16 filters of size 3x3 applied to a 3-channel RGB image?
(3-चैनल RGB इमेज पर 3x3 आकार के 16 फिल्टर्स वाली Conv2D लेयर में (बायस सहित) कुल कितने ट्रेनेबल पैरामीटर्स होते हैं?)
(A) 432
(B) 144
(C) 448
(D) 160
Correct Answer: (C)
[EN] Each filter has (3 * 3 * 3) weights + 1 bias = 28 parameters; 16 filters * 28 = 448 total parameters.
[HI] प्रत्येक फिल्टर में (3*3*3) वेट्स + 1 बायस = 28 पैरामीटर्स; 16 फिल्टर्स * 28 = 448 कुल पैरामीटर्स।
Q4. How many learnable parameters exist inside a standard 2x2 Max Pooling layer with stride 2?
(स्ट्राइड 2 वाली एक मानक 2x2 मैक्स पूलिंग लेयर के भीतर कितने लर्नेबल पैरामीटर्स होते हैं?)
(A) 16
(B) 256
(C) 0
(D) 4
Correct Answer: (C)
[EN] Pooling performs a fixed mathematical aggregation (max or mean) with zero trainable weights or biases.
[HI] पूलिंग एक निश्चित गणितीय संक्रिया (अधिकतम या औसत) है जिसमें कोई ट्रेनेबल वेट या बायस नहीं होता।
Q5. A feature map of shape 28 x 28 x 64 passes through a 2x2 Max Pooling layer with stride 2. What is the resulting output shape?
(28 x 28 x 64 आकार का फीचर मैप स्ट्राइड 2 वाली 2x2 मैक्स पूलिंग लेयर से गुजरने पर किस आकार का आउटपुट देगा?)
(A) 14 x 14 x 64
(B) 7 x 7 x 64
(C) 28 x 28 x 32
(D) 14 x 14 x 32
Correct Answer: (A)
[EN] Spatial pooling operates independently on each channel, halving height and width (28/2 = 14) while keeping all 64 channels.
[HI] पूलिंग प्रत्येक चैनल पर स्वतंत्र रूप से कार्य करती है, जिससे ऊंचाई-चौड़ाई आधी (14x14) हो जाती है पर 64 चैनल अपरिवर्तित रहते हैं।
Q6. Which two mechanisms allow CNNs to use orders of magnitude fewer parameters than dense MLPs on images?
(कौन-सी दो कार्यप्रणालियाँ CNN को इमेजेज़ पर डेंस MLP की तुलना में बहुत कम पैरामीटर्स उपयोग करने में सक्षम बनाती हैं?)
(A) One-hot encoding and PCA
(B) Zero initialization and batch size 1
(C) Dropout and L1 penalty
(D) Local receptive fields and weight sharing
Correct Answer: (D)
[EN] Small local kernels and reusing the same kernel weights across all spatial positions cut parameter count drastically.
[HI] छोटे लोकल रिसेप्टिव फील्ड्स और पूरे चित्र पर एक ही फिल्टर की वेट शेयरिंग पैरामीटर्स को भारी मात्रा में कम करती है।
Q7. What happens to the output size of a 28x28 input convolved with a 5x5 filter using stride S = 2 and padding P = 0?
(28x28 इनपुट पर S = 2 और P = 0 के साथ 5x5 फिल्टर लगाने पर आउटपुट का आकार क्या होगा?)
(A) 24 x 24
(B) 13 x 13
(C) 14 x 14
(D) 12 x 12
Correct Answer: (D)
[EN] floor((28 - 5 + 0) / 2) + 1 = floor(23 / 2) + 1 = 11 + 1 = 12.
[HI] floor((28 - 5 + 0) / 2) + 1 = floor(23 / 2) + 1 = 11 + 1 = 12.
Q8. What is the primary purpose of using 1x1 convolutions inside CNN architectures like GoogLeNet/ResNet?
(GoogLeNet/ResNet जैसे CNN आर्किटेक्चर में 1x1 कनवोल्यूशन का उपयोग करने का मुख्य उद्देश्य क्या है?)
(A) Increasing image height and width by 4x
(B) Adding zero borders around images
(C) Channel-wise dimensionality reduction (bottleneck) and cross-channel feature mixing
(D) Replacing Softmax at the final output
Correct Answer: (C)
[EN] A 1x1 convolution performs a linear projection across channels at every pixel without altering height and width.
[HI] 1x1 कनवोल्यूशन ऊंचाई-चौड़ाई बदले बिना प्रत्येक पिक्सेल पर चैनलों की गहराई को कम या मिश्रित करने के लिए उपयोग होता है।
Q9. Which landmark 2012 CNN architecture won ImageNet ILSVRC by a large margin using ReLU, Dropout, and GPU training?
(2012 में किस ऐतिहासिक CNN आर्किटेक्चर ने ReLU, Dropout और GPU प्रशिक्षण के साथ ImageNet ILSVRC बड़े अंतर से जीता था?)
(A) LeNet-5
(B) AlexNet
(C) Word2Vec
(D) Perceptron Mark I
Correct Answer: (B)
[EN] AlexNet (Krizhevsky, Sutskever, Hinton, 2012) cut ImageNet top-5 error to ~15.3%, launching modern deep vision.
[HI] AlexNet (2012) ने ReLU और GPU का उपयोग कर ImageNet त्रुटि दर को काफी कम किया और आधुनिक डीप लर्निंग युग शुरू किया।
Q10. How did ResNet (2015) enable training of 152-layer CNNs without suffering accuracy degradation?
(ResNet (2015) ने बिना प्रदर्शन गिरावट के 152-लेयर गहरे CNN को ट्रेन करना कैसे संभव बनाया?)
(A) By removing all convolution layers
(B) By replacing backprop with K-Means
(C) By setting stride to 10 in layer 1
(D) By adding identity skip (residual) connections computing H(x) = F(x) + x
Correct Answer: (D)
[EN] Skip connections let gradients flow directly backward through identity paths, preventing degradation in deep stacks.
[HI] स्किप कनेक्शन्स (H(x) = F(x) + x) ग्रेडिएंट को बिना क्षीण हुए सीधे पिछली लेयर्स तक प्रवाहित होने देते हैं।
Q11. Why did VGG-16 prefer stacking two 3x3 convolutions instead of a single 5x5 convolution?
(VGG-16 ने एक 5x5 कनवोल्यूशन के बजाय दो 3x3 कनवोल्यूशन्स को स्टैक करना क्यों पसंद किया?)
(A) Same 5x5 effective receptive field with fewer parameters (18 vs 25 per channel) and two ReLU non-linearities
(B) Two 3x3 filters increase spatial size
(C) 5x5 convolutions cannot run on GPUs
(D) 3x3 kernels require no padding
Correct Answer: (A)
[EN] Two 3x3 layers cover a 5x5 receptive field using 2*(3*3)=18 weights instead of 25, plus extra non-linearity.
[HI] दो 3x3 लेयर्स 5x5 जितना ही रिसेप्टिव फील्ड केवल 18 वेट्स (25 के बजाय) और दो ReLU नॉन-लीनियरिटी के साथ देती हैं।
Q12. What does Global Average Pooling (GAP) do at the end of modern CNN backbones before the classifier?
(आधुनिक CNN के अंत में क्लासिफायर से पहले ग्लोबल एवरेज पूलिंग (GAP) क्या करता है?)
(A) Averages every entire H x W feature map into 1 number per channel, reducing dense Flatten parameters
(B) Doubles the number of channels
(C) Selects only the top-left pixel of the image
(D) Applies 50% Dropout to RGB pixels
Correct Answer: (A)
[EN] GAP converts an HxWxC tensor directly into a C-dimensional vector, preventing massive dense Flatten layers that overfit.
[HI] GAP पूरे HxWxC टेंसर को सीधे C-आयामी वेक्टर में बदल देता है, जिससे भारी Flatten लेयर और ओवरफिटिंग से बचाव होता है।
Q13. What characteristic do early CNN layers learn compared to deeper CNN layers?
(गहरी CNN लेयर्स की तुलना में शुरुआती CNN लेयर्स क्या सीखती हैं?)
(A) Early layers detect low-level edges, corners, and colors; deeper layers detect high-level parts and objects
(B) Early layers only perform classification
(C) Early layers detect full faces; deeper layers detect single pixels
(D) All layers detect identical horizontal edges
Correct Answer: (A)
[EN] Hierarchical feature composition builds edges -> textures -> object parts -> whole object classes.
[HI] शुरुआती लेयर्स किनारों व रंगों को पकड़ती हैं, जबकि गहरी लेयर्स जटिल आकृतियों व पूरी वस्तुओं को पहचानती हैं।
Q14. Given a 2x2 window [[3, 9], [1, 7]], what are the outputs of Max Pooling and Average Pooling respectively?
(2x2 विंडो [[3, 9], [1, 7]] के लिए मैक्स पूलिंग और एवरेज पूलिंग के आउटपुट क्रमशः क्या होंगे?)
(A) 1 and 5.0
(B) 9 and 20.0
(C) 9 and 5.0
(D) 7 and 4.5
Correct Answer: (C)
[EN] Max(3, 9, 1, 7) = 9; Average = (3 + 9 + 1 + 7) / 4 = 20 / 4 = 5.0.
[HI] अधिकतम मान = 9 और औसत = (3 + 9 + 1 + 7) / 4 = 20 / 4 = 5.0.
Q15. In the Python code snippet, the 3x3 kernel [[1,0,-1], [1,0,-1], [1,0,-1]] highlights which visual feature?
(पायथन कोड में 3x3 कर्नेल [[1,0,-1], [1,0,-1], [1,0,-1]] किस दृश्य फीचर को उजागर करता है?)
(A) Radial blur
(B) Pure green color balance
(C) Vertical edges (horizontal brightness gradients)
(D) Horizontal edges only
Correct Answer: (C)
[EN] Subtracting the right column (-1) from the left column (+1) fires strongly on vertical intensity transitions.
[HI] बाएं कॉलम (+1) में से दाएं कॉलम (-1) को घटाने पर ऊर्ध्वाधर किनारों (vertical edges) पर उच्च मान मिलता है।
Q16. Which statement is NOT true regarding Convolutional Neural Networks?
(कनवोल्यूशनल न्यूरल नेटवर्क्स (CNN) के संबंध में निम्न में से कौन-सा कथन सत्य नहीं है?)
(A) Pooling layers reduce spatial dimensions without learnable weights
(B) Valid padding uses P = 0
(C) Convolution kernels have depth matching input channels
(D) Increasing stride from S = 1 to S = 2 enlarges the height and width of the output feature map
Correct Answer: (D)
[EN] Increasing stride skips positions and shrinks output spatial dimensions rather than enlarging them.
[HI] स्ट्राइड को S = 1 से S = 2 करने पर आउटपुट फीचर मैप का आकार बढ़ता नहीं बल्कि छोटा हो जाता है।
Q17. Within Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling, which cnn component directly maps to: "Learnable KxKxC_in weight matrix sliding across input"?
(Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling में कौन सा CNN Component सीधे "Learnable KxKxC_in weight matrix sliding across input" से संबंधित है?)
(A) Max Pooling
(B) Zero Padding (P)
(C) Residual Skip Connection
(D) Convolution Kernel (Filter)
Correct Answer: (D)
[EN] In Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling, 'Convolution Kernel (Filter)' handles 'Learnable KxKxC_in weight matrix sliding across input' (Weight sharing cuts parameter count vastly).
[HI] Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling में 'Convolution Kernel (Filter)' का कार्य/विवरण 'Learnable KxKxC_in weight matrix sliding across input' (Weight sharing cuts parameter count vastly) है।
Q18. Which option accurately describes 'Zero Padding (P)' in Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling?
(Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling के संदर्भ में 'Zero Padding (P)' की सही विशेषता कौन सी है?)
(A) Outputs maximum value inside each KxK window
(B) Adds P zero pixels around input spatial borders
(C) Learnable KxKxC_in weight matrix sliding across input
(D) Adds block input directly to output: F(x) + x
Correct Answer: (B)
[EN] 'Zero Padding (P)' provides 'Adds P zero pixels around input spatial borders' — key point: Same padding preserves input height & width.
[HI] 'Zero Padding (P)' का मुख्य विवरण 'Adds P zero pixels around input spatial borders' है (Same padding preserves input height & width)।
Q19. In Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling, identify the correct parameter for the specification: "Outputs maximum value inside each KxK window".
(Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling में "Outputs maximum value inside each KxK window" विवरण किस विकल्प के लिए सही है?)
(A) Zero Padding (P)
(B) Max Pooling
(C) Residual Skip Connection
(D) Convolution Kernel (Filter)
Correct Answer: (B)
[EN] 'Max Pooling' corresponds to 'Outputs maximum value inside each KxK window' (Has 0 learnable parameters; downsamples size).
[HI] 'Max Pooling' का संबंध 'Outputs maximum value inside each KxK window' (Has 0 learnable parameters; downsamples size) से है।
Q20. Considering Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling, what key behavior defines 'Residual Skip Connection'?
(Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling में 'Residual Skip Connection' की मुख्य भूमिका या मान क्या है?)
(A) Adds P zero pixels around input spatial borders
(B) Outputs maximum value inside each KxK window
(C) Learnable KxKxC_in weight matrix sliding across input
(D) Adds block input directly to output: F(x) + x
Correct Answer: (D)
[EN] 'Residual Skip Connection' represents 'Adds block input directly to output: F(x) + x' (Solves degradation in very deep ResNets).
[HI] 'Residual Skip Connection' का अर्थ/मान 'Adds block input directly to output: F(x) + x' है (Solves degradation in very deep ResNets)।
Convolutional Neural Networks (CNN): Image Processing, Filters, Pooling — Exam FAQs
Q1: What is the difference between Valid Padding and Same Padding in CNNs?
CNN में वैलिड पैडिंग (Valid Padding) और सेम पैडिंग (Same Padding) के बीच क्या अंतर है?
[EN] Valid padding adds no zero borders (P = 0), so convolution outputs shrink whenever K > 1; Same padding adds enough zero border pixels so that with stride 1 the output feature map retains the exact input height and width.
[HI] वैलिड पैडिंग में कोई बाहरी शून्य (P = 0) नहीं जोड़ा जाता जिससे आउटपुट आकार छोटा हो जाता है; सेम पैडिंग किनारों पर पर्याप्त शून्य जोड़कर स्ट्राइड 1 पर आउटपुट का आकार इनपुट के बराबर बनाए रखती है।
Q2: What is the difference between Translation Equivariance and Translation Invariance in CNNs?
CNN में ट्रांसलेशन इक्विवेरियंस और ट्रांसलेशन इनवेरियंस में क्या अंतर है?
[EN] Convolution layers are translation equivariant (shifting the input object shifts its feature map activation correspondingly), while Pooling makes small local shifts produce nearly identical summarized outputs (local translation invariance).
[HI] कनवोल्यूशन लेयर्स ट्रांसलेशन इक्विवेरियंट होती हैं (इनपुट खिसकने पर फीचर मैप में भी सक्रियता उतनी ही खिसकती है), जबकि पूलिंग छोटे स्थानिक बदलावों के प्रति आउटपुट को स्थिर (इंवेरिएंट) बनाती है।
Q3: Why are 3x3 convolutions stacked in deep CNNs rather than using huge 11x11 filters everywhere?
गहरे CNN में हर जगह बड़े 11x11 फिल्टर्स के बजाय छोटे 3x3 कनवोल्यूशन क्यों स्टैक किए जाते हैं?
[EN] Stacked 3x3 filters achieve the same effective receptive field with far fewer parameters, lower FLOPs, and more non-linear ReLU activations between layers.
[HI] स्टैक्ड 3x3 फिल्टर्स बहुत कम पैरामीटर्स, कम कंप्यूटेशन और लेयर्स के बीच अधिक ReLU नॉन-लीनियरिटी के साथ उतना ही बड़ा रिसेप्टिव फील्ड प्रदान करते हैं।
Post a Comment
Post a Comment