Intermediate 40 Questions • ~10 hrs study

Computer Vision (Q251-290)

Image classification, object detection, semantic segmentation, GANs, diffusion models, and vision transformers.

251

Explain the difference between object detection and semantic segmentation.

Short Answer

Object detection: Finds objects and draws bounding boxes (YOLO, Faster R-CNN). Semantic segmentation: Classifies every pixel (U-Net, DeepLab). Instance segmentation combines both (Mask R-CNN).

Key Points

  • Detection: "There's a cat at coordinates (x,y,w,h)"
  • Semantic Seg: "These pixels are cat, these are dog"
  • Instance Seg: "These pixels are cat #1, those are cat #2"
  • Panoptic Seg: Semantic + Instance combined

💡 Memory Trick: "Detection = box around objects | Segmentation = coloring book (every pixel gets a color)"

252

How does YOLO work and why is it fast?

Short Answer

YOLO (You Only Look Once) divides the image into a grid, predicts bounding boxes and class probabilities in a single forward pass. Unlike two-stage detectors (R-CNN), it's a single-shot detector — making it real-time capable.

Key Points

  • Single forward pass: Grid cells predict boxes + confidence + classes
  • Non-Maximum Suppression (NMS) removes duplicate detections
  • YOLOv8/v9: State-of-the-art, anchor-free, better small object detection
  • Trade-off: Slightly less accurate than two-stage but much faster

💡 Memory Trick: "YOLO = One glance at the image. R-CNN = Look, propose regions, then look again"

253

What are Vision Transformers (ViT) and how do they compare to CNNs?

Short Answer

ViT splits an image into patches, treats each as a token, and applies transformer self-attention. Advantages: global receptive field from layer 1, scales better with data. Disadvantage: needs more data than CNNs (no inductive bias for locality).

Aspect CNN ViT
Inductive BiasLocality, translation equivarianceMinimal
Data EfficiencyBetter with small dataNeeds large datasets
ScalingSaturatesScales with data/compute

💡 Memory Trick: "CNN = looks through small windows | ViT = sees the full picture through patches"

Questions 254-290 continue with the same detailed format.

Topics covered: Data Augmentation, Transfer Learning for CV, GANs (StyleGAN, CycleGAN), Diffusion Models (Stable Diffusion, DALL-E), Image Preprocessing, Feature Extraction, Optical Flow, 3D Vision, and model deployment for edge devices.

View Full Documentation →