Skip to content

Files

Latest commit

827e6ef · Feb 25, 2025

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 21, 2024
Feb 25, 2025
cover coverY
0

Billboard Segmentation Using Segformer

This project leverages the Segformer pretrained model for billboard segmentation via semantic segmentation, with a focus on Indian billboards. By utilizing transfer learning on a custom dataset, the model precisely classifies and outlines billboards within images, facilitating efficient detection and analysis. The methodology incorporates several key improvements, including:

  • Dataset Augmentation to increase model robustness.
  • Data Balancing to address class imbalance issues.
  • Advanced Post-Processing techniques to refine segmentation results.

These techniques significantly enhance segmentation accuracy, addressing challenges commonly encountered in binary semantic segmentation tasks.


Dataset Format

The dataset is structured as follows:

├── Data
│   ├── Train
│   │   ├── images  # Training images
│   │   ├── masks   # Corresponding binary masks
│   ├── Validation
│   │   ├── images  # Validation images
│   │   ├── masks   # Corresponding binary masks

You can download the dataset from the following link:


Google Colab Demo

To train the Segformer model for billboard segmentation, you can follow along with the Google Colab notebook linked below. The notebook provides step-by-step instructions for data preprocessing, model training, and evaluation.

Open In Colab


Evaluation

The following graph shows the training and validation performance over time, demonstrating the model's convergence and improvement in segmentation accuracy:

train_eval_plot_segformer-5-b1


Test Images

Below are sample outputs of the model on test images. These showcase the model's ability to accurately segment billboards:

test_4


Final Results

Here are some final outputs after post-processing, showing the refined billboard segmentation:

1 final_image_1


This README is focused solely on the training aspect of the project. A separate README file will cover API-related details and deployment.