🌍 Deep Learning · flashcards

Deep Learning Convolutional Neural Networks Flashcards

50 question-and-answer cards covering Convolutional Neural Networks as it is examined in Deep Learning. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

50Cards in deck
24Free preview
20Syllabus topics
~273Chars per answer
FreePrice

24 sample cards from the Convolutional Neural Networks deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. How does Fast R-CNN improve on R-CNN?

    Fast R-CNN runs the CNN once over the whole image, then uses RoI pooling to extract fixed-size features per proposal from the shared feature map, and trains classification and bounding-box regression jointly with a multi-task loss—much faster and more accurate.

  2. What is the key innovation of Faster R-CNN?

    Faster R-CNN replaces selective search with a learnable Region Proposal Network (RPN) that shares convolutional features with the detector and predicts objectness and box offsets over anchors, giving a near real-time end-to-end trainable two-stage detector.

  3. What is RoI Pooling, and how does RoI Align differ?

    RoI Pooling divides each region proposal into a fixed grid and max-pools features, but quantizes coordinates, causing misalignment. RoI Align (from Mask R-CNN) avoids quantization by using bilinear interpolation at sampled points, giving precise, sub-pixel-accurate features—critical for segmentation.

  4. How does YOLO frame object detection, and what does it predict per grid cell?

    YOLO treats detection as a single regression: it divides the image into an $S\times S$ grid and each cell predicts $B$ bounding boxes (x, y, w, h, confidence) plus $C$ class probabilities. Confidence is $P(\text{object})\times \text{IoU}$. It is very fast (single forward pass).

  5. How does SSD (Single Shot Detector) detect objects at multiple scales?

    SSD attaches detection heads to several feature maps of decreasing resolution, using default (anchor) boxes of multiple aspect ratios at each location. Shallow high-resolution maps detect small objects; deep low-resolution maps detect large objects—all in one pass.

  6. What are anchor boxes and why are they used?

    Anchor boxes are predefined reference boxes of various scales and aspect ratios placed densely across the feature map. The network predicts class scores and offsets relative to each anchor rather than absolute coordinates, making detection of multiple objects and shapes per location tractable.

  7. Define Intersection over Union (IoU) and its formula.

    IoU measures overlap between predicted box $A$ and ground-truth box $B$: $$\text{IoU}=\frac{|A\cap B|}{|A\cup B|}.$$ It ranges from 0 (no overlap) to 1 (perfect). A threshold (commonly 0.5) decides positive matches.

  8. Describe the Non-Maximum Suppression (NMS) algorithm.

    NMS removes duplicate detections: sort boxes by confidence, select the highest, remove all remaining boxes with IoU above a threshold (e.g., 0.5) relative to it, and repeat on the rest. It keeps one box per object. Soft-NMS decays scores instead of hard removal.

  9. How is mean Average Precision (mAP) computed for object detection?

    For each class, compute Average Precision as the area under the precision–recall curve (matches decided by an IoU threshold), then average AP over all classes. COCO reports mAP averaged over IoU thresholds from 0.5 to 0.95 in steps of 0.05.

  10. What is DETR and how does it eliminate hand-designed components?

    DETR (DEtection TRansformer) treats detection as direct set prediction: a CNN backbone feeds a transformer encoder–decoder that outputs a fixed set of predictions from learned object queries. It removes anchors and NMS, replacing them with bipartite matching and self-attention.

  11. What loss and matching does DETR use to train?

    DETR uses the Hungarian algorithm to find a bipartite matching between predicted and ground-truth objects (a one-to-one assignment), then applies a set loss combining classification cross-entropy and box loss ($\ell_1$ + generalized IoU). Unmatched predictions are trained toward a 'no object' class.

  12. What are object queries in DETR?

    Object queries are a fixed set of $N$ learned embeddings fed to the transformer decoder; each attends to image features and produces one detection (class + box). $N$ is set larger than the typical number of objects, with extras predicting 'no object'.

  13. Distinguish semantic segmentation, instance segmentation, and panoptic segmentation.

    Semantic segmentation labels every pixel with a class but does not separate object instances. Instance segmentation detects and masks each object separately (only 'things'). Panoptic segmentation unifies both: per-pixel class labels plus instance IDs for countable objects, with 'stuff' regions labeled semantically.

  14. What defines a Fully Convolutional Network (FCN) for segmentation?

    An FCN replaces the fully connected layers of a classifier with convolutions, so it outputs a spatial class map instead of a single vector, accepting arbitrary input sizes. Upsampling (transposed convolution) restores resolution to produce dense per-pixel predictions.

  15. What is transposed convolution (deconvolution) and its role in segmentation?

    Transposed convolution is a learnable upsampling operation that increases spatial resolution by spreading each input value over a kernel-sized output region (the gradient operation of convolution). FCNs and U-Net use it to map coarse feature maps back to full-resolution masks.

  16. What are skip connections in FCN (e.g., FCN-8s) used for?

    They fuse coarse, deep semantic features with finer, shallow high-resolution features (via elementwise addition after upsampling), recovering spatial detail lost to downsampling. FCN-8s combines predictions from pool3, pool4, and the final layer for sharper boundaries.

  17. Describe the U-Net architecture.

    U-Net has a symmetric encoder–decoder ('U' shape): a contracting path of conv+pooling captures context, an expanding path of transposed convs restores resolution, and skip connections concatenate encoder feature maps to the matching decoder level, preserving spatial detail. Designed for biomedical image segmentation.

  18. Why are skip connections in U-Net concatenations rather than additions, and what do they provide?

    U-Net concatenates encoder features onto decoder features at each resolution so the decoder can combine high-resolution localization information with upsampled semantic context, producing precise boundaries. Concatenation preserves both signals rather than merging them additively.

  19. What loss functions are common for semantic segmentation, and why is Dice loss useful?

    Pixel-wise cross-entropy is standard. Dice loss, based on the Dice coefficient $$\text{Dice}=\frac{2|X\cap Y|}{|X|+|Y|},$$ directly optimizes overlap and handles class imbalance well (e.g., small foreground regions), so it is popular in medical imaging.

  20. How does Mask R-CNN extend Faster R-CNN?

    Mask R-CNN adds a third branch that outputs a binary segmentation mask for each RoI in parallel with the classification and box-regression branches, and replaces RoI Pooling with RoI Align for pixel-accurate features—enabling instance segmentation.

  21. Why does Mask R-CNN predict masks per class independently rather than with a softmax across classes?

    It predicts a separate binary mask for each class and relies on the classification branch to select which mask to use. This decouples mask prediction from class competition, avoiding inter-class competition and improving mask quality.

  22. What is a pretrained backbone and why is transfer learning with one effective?

    A backbone is a feature-extraction network (e.g., ResNet, VGG, EfficientNet) pretrained on a large dataset like ImageNet. Its early layers learn general features (edges, textures) transferable across tasks, so fine-tuning on a smaller dataset converges faster and generalizes better than training from scratch.

  23. Contrast feature extraction versus fine-tuning when using a pretrained backbone.

    Feature extraction freezes the backbone weights and trains only a new head—fast and good for small/similar datasets. Fine-tuning unfreezes some or all backbone layers and continues training at a low learning rate—better when the target dataset is larger or differs from the pretraining domain.

  24. What is a Feature Pyramid Network (FPN) and why is it used with backbones in detection?

    FPN builds a multi-scale feature pyramid by combining a bottom-up backbone pathway with a top-down pathway and lateral skip connections, producing semantically strong features at every resolution. It improves detection of objects across scales (used in Faster R-CNN, Mask R-CNN, RetinaNet).

What this deck covers

The Convolutional Neural Networks deck follows the Deep Learning Convolutional Neural Networks syllabus — 5 chapters and 20 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 10.0 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 273 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Convolutional Neural Networks flashcards FAQ

How many Convolutional Neural Networks flashcards are in this Deep Learning deck?

50 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these Deep Learning flashcards free?

Yes. The preview here is free to read with no signup, and the full 50-card deck is free inside the Examius app.

What do the Convolutional Neural Networks cards cover?

They follow the Deep Learning Convolutional Neural Networks syllabus — 5 chapters and 20 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.