> ## Documentation Index
> Fetch the complete documentation index at: https://aegean.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Perception

> Visual perception with CNNs, object detection, and segmentation.

This chapter covers visual perception: convolutional networks, object detection, and pixel-level segmentation. Sensor modeling (cameras, lidar, calibration, beam models) lives in the [Robotics Systems](/book/robotics-systems/index) chapter, where it sits alongside state estimation and SLAM.

<CardGroup cols={2}>
  <Card title="CNNs" icon="layer-group" href="/aiml-common/lectures/cnn/cnn-intro/index">
    Convolutional neural networks for image classification, including layer types, architectures, and visualization techniques.
  </Card>

  <Card title="Object Detection" icon="object-group" href="/aiml-common/lectures/scene-understanding/scene-understanding-intro/index">
    Detecting and localizing objects in images using two-stage and single-stage deep learning detectors.
  </Card>

  <Card title="Object Segmentation" icon="shapes" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/index">
    Pixel-wise classification for semantic and instance segmentation using Mask RCNN and UNet.
  </Card>
</CardGroup>

## Convolutional neural networks

CNNs are the backbone of modern computer vision systems, enabling image classification, feature extraction, and visual understanding.

<CardGroup cols={2}>
  <Card title="CNN introduction" icon="layer-group" href="/aiml-common/lectures/cnn/cnn-intro/index">
    Introduction to convolutional neural networks.
  </Card>

  <Card title="CNN layers" icon="bars-staggered" href="/aiml-common/lectures/cnn/cnn-layers/index">
    Understanding CNN layer types and operations.
  </Card>

  <Card title="CNN architectures" icon="sitemap" href="/aiml-common/lectures/cnn/cnn-example-architectures/index">
    Example architectures: LeNet, AlexNet, VGG, ResNet.
  </Card>

  <Card title="Feature extraction: ResNet" icon="microchip" href="/aiml-common/lectures/scene-understanding/feature-extraction-resnet/index">
    ResNet as a backbone for downstream vision tasks.
  </Card>
</CardGroup>

## Object detection

Object detection covers scene understanding fundamentals, evaluation metrics, and the evolution from two-stage (RCNN family) to single-stage (YOLO family) detectors.

<CardGroup cols={2}>
  <Card title="Scene understanding" icon="eye" href="/aiml-common/lectures/scene-understanding/scene-understanding-intro/index">
    Detection vs classification, the detection pipeline, region proposals, FCNs, and the COCO dataset.
  </Card>

  <Card title="Detection metrics" icon="chart-bar" href="/aiml-common/lectures/scene-understanding/object-detection/detection-metrics/index">
    Precision, recall, mAP, and IoU for evaluating detectors.
  </Card>

  <Card title="RCNN" icon="layer-group" href="/aiml-common/lectures/scene-understanding/object-detection/rcnn/index">
    Region-based CNN: selective search, CNN features, SVM classification.
  </Card>

  <Card title="Fast RCNN" icon="bolt" href="/aiml-common/lectures/scene-understanding/object-detection/fast-rcnn/index">
    Shared convolutional features and ROI pooling for end-to-end training.
  </Card>

  <Card title="Faster RCNN" icon="gauge-high" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/index">
    Region Proposal Network enabling fully end-to-end two-stage detection.
  </Card>
</CardGroup>

### Faster RCNN from scratch (PyTorch)

A six-notebook series building every Faster RCNN component from scratch in pure PyTorch, from COCO data loading through end-to-end training and inference.

<CardGroup cols={2}>
  <Card title="01 · COCO dataloader" icon="database" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/01_coco_dataloader/01_coco_dataloader">
    Streaming COCO from Hugging Face, collation, and anchor target assignment.
  </Card>

  <Card title="02 · Backbone" icon="microchip" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/02_backbone/02_backbone">
    ResNet50 feature pyramid network (FPN) with lateral connections.
  </Card>

  <Card title="03 · RPN" icon="crosshairs" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/03_rpn/03_rpn">
    Region Proposal Network: anchor generation, objectness head, NMS.
  </Card>

  <Card title="04 · ROI head" icon="crop" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/04_roi_head/04_roi_head">
    ROI Align, two-layer MLP head, and sibling classification and regression predictors.
  </Card>

  <Card title="05 · Training" icon="play" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/05_training/05_training">
    End-to-end training with AMP and gradient checkpointing on COCO streaming data.
  </Card>

  <Card title="06 · Inference" icon="magnifying-glass" href="/aiml-common/lectures/scene-understanding/object-detection/faster-rcnn/pytorch/06_inference/06_inference">
    Checkpoint loading, COCO validation inference, proposal and detection visualization.
  </Card>
</CardGroup>

### YOLO from scratch (PyTorch)

A five-notebook series building YOLOv8-style single-stage detection in pure PyTorch, from data loading through inference and evaluation.

<CardGroup cols={2}>
  <Card title="YOLO introduction" icon="eye" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/introduction">
    Single-stage detection design philosophy, anchor-free heads, and the YOLO architecture family.
  </Card>

  <Card title="01 · COCO dataloader" icon="database" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/pytorch/01_coco_dataloader/01_coco_dataloader">
    Streaming COCO, grid target assignment, and mosaic augmentation.
  </Card>

  <Card title="02 · Backbone" icon="microchip" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/pytorch/02_backbone/02_backbone">
    CSPDarknet backbone with C2f bottleneck blocks.
  </Card>

  <Card title="03 · Neck and head" icon="sitemap" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/pytorch/03_neck_and_head/03_neck_and_head">
    PANet feature pyramid neck and decoupled detection head.
  </Card>

  <Card title="04 · Loss and training" icon="play" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/pytorch/04_loss_and_training/04_loss_and_training">
    Task-aligned assignment, distribution focal loss, and training loop.
  </Card>

  <Card title="05 · Inference and evaluation" icon="chart-bar" href="/aiml-common/lectures/scene-understanding/object-detection/yolo/pytorch/05_inference_and_evaluation/05_inference_and_evaluation">
    NMS post-processing, COCO mAP evaluation, and latency benchmarks.
  </Card>
</CardGroup>

## Object segmentation

Instance and semantic segmentation extend object detection to produce pixel-level masks, enabling fine-grained scene understanding.

<CardGroup cols={2}>
  <Card title="Mask RCNN" icon="shapes" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/index">
    Extending Faster RCNN with a mask head for instance segmentation.
  </Card>

  <Card title="Mask RCNN · TF demo" icon="flask" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/tf/demo/demo">
    Running inference with the TensorFlow Mask RCNN implementation.
  </Card>

  <Card title="Mask RCNN · inspect data" icon="table" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/tf/inspect_data/inspect_data">
    Visualizing COCO data loading, augmentation, and anchor generation.
  </Card>

  <Card title="Mask RCNN · inspect model" icon="sitemap" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/tf/inspect_model/inspect_model">
    Layer-by-layer inspection of model activations and outputs.
  </Card>

  <Card title="Mask RCNN · inspect weights" icon="weight-hanging" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/tf/inspect_weights/inspect_weights">
    Visualizing learned filter weights and statistics.
  </Card>

  <Card title="Mask RCNN · PyTorch (Detectron2)" icon="brands python" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/pytorch/maskrcnn_detectron/maskrcnn_detectron">
    Detectron2 Mask RCNN training and evaluation workflow.
  </Card>

  <Card title="Mask RCNN · torchvision inference" icon="image" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/maskrcnn/pytorch/maskrcnn_torchvision_inference">
    Running pretrained Mask RCNN inference with torchvision.
  </Card>

  <Card title="UNet" icon="network-wired" href="/aiml-common/lectures/scene-understanding/semantic-segmentation/unet/index">
    Encoder-decoder architecture for semantic segmentation.
  </Card>
</CardGroup>

***

<Callout icon="pen-to-square" iconType="regular">
  [Edit this page on GitHub](https://github.com/aegean-ai/eaia/edit/main/src/book/perception/index.mdx) or [file an issue](https://github.com/aegean-ai/eaia/issues/new/choose).
</Callout>
