Autonomous Driving Context Awareness: Semantic Segmentation


Team

Table of Contents

  1. Introduction
  2. Qualitative Results
  3. How to Run
  4. Methodology & Architecture
  5. Dataset Details
  6. Preliminary Results
  7. Failure Cases & Observations
  8. Planned Improvements & Next Steps
  9. Links

Introduction

This project addresses the critical real-world challenge of autonomous driving context awareness. By developing an advanced semantic segmentation pipeline, the system categorizes environmental features in real-time, focusing specifically on roads, lanes, and sidewalks. Utilizing the CARLA dataset, the solution implements optimized deep learning architectures to accurately interpret complex driving scenarios, ultimately contributing to safer and more reliable autonomous navigation systems.


Qualitative Results

Dataset Samples: Input (RGB) vs. Ground Truth Mask

Dataset Samples

Model Predictions — Input | Ground Truth | Prediction | Overlay

Model Predictions


How to Run

The training pipeline is provided as a Jupyter Notebook (code.ipynb). It is optimized to run top-to-bottom on a GPU-enabled Kaggle kernel.

Prerequisites

Ensure you have a GPU environment (a Tesla T4 or better is recommended) and the following dependencies installed:

Dataset Setup

The notebook expects the CARLA 20K semantic segmentation dataset to be located in the Kaggle input directory structure.

  1. Place the dataset files in your environment.
  2. Ensure the color_dict.csv file and the semantic_segmentation_dataset/ folders (train/images and val/images) are mapped correctly.
  3. If running locally or on Colab, update the BASE_DIR variable in the notebook to point to your dataset’s root folder.

Execution

  1. Open the notebook in your Jupyter/Kaggle/Colab environment.
  2. Ensure the hardware accelerator is set to GPU.
  3. Run the notebook cells top-to-bottom to initialize the dataset, apply the Albumentations pipeline, build the O(1) GPU mask decoding lookup table, and commence the training loop.

Methodology & Architecture

This section details the machine learning pipeline, including:


Dataset Details

The dataset consists of synthetic driving scenes covering varied lighting, weather, and road geometry. It is split into 14,000 training frames and 4,000 validation frames, representing a 77.8% / 22.2% split.

Class Frequency and Applied Loss Weights

Class Pixel Frequency Loss Weight
Roads 32.1% 0.10
Vegetation 11.6% 0.11
Sidewalks 9.2% 0.14
RoadLines 1.0% 1.23
Poles 0.6% 2.09
TrafficSigns 0.16% 7.84
Pedestrians 0.03% 20.00

Preliminary Results

A full 10-epoch run was completed utilizing early stopping with a patience of 2.


Failure Cases & Observations