Skip to content

sunandhini96/Water_body_segmentation-TransDeeplab

Repository files navigation

TransDeeplab Model

Task : Water Body Segmentation using Trans DeepLab model.

This project implements water body segmentation using the Trans DeepLab model. It includes code for training the model, evaluating its performance, and metrics calculations.

Problem Statement:

Extracting water bodies from satellite images is challenging because water bodies can appear differently in satellite images. Water pixels have various colors and patterns, making it hard to tell them apart from other land features.

Files Required:

  • model.py: TransDeepLab model
  • training.ipynb: Training the model code
  • evaluation.py: Model evaluation code
  • transdeeplab and deeplab comparision.ipynb: Comparision of trans deeplab and convolution based deeplab models.

Installation:

git clone https://github.com/sunandhini96/Water_body_segmentation-TransDeeplab.git

cd Water_body_segmentation-TransDeeplab

Usage:

Run the training script to train the model:

run the training.ipynb

To evaluate the trained model:

python evaluation.py

Dataset:

The project uses RGB satellite images and corresponding masks from Sentinel-2 A/B satellite. You can obtain the dataset https://www.kaggle.com/datasets/franciscoescobar/satellite-images-of-water-bodies

Example of RGB satellite image and true mask image

  • (white pixels represent water and black pixels represents other than water in true mask)
image

Methodology: Trans Deeplab Architecture

image

Output:

Four Sample input images with its True Mask, Predicted Mask for Trans DeepLab and Predicted Mask for DeepLab Model

image

Citation:

If you use this code in your research, please cite our recent paper for more details.

More Details:

For a detailed explanation of the project and results, refer to our paper.

About

This repo hosts the water body extraction from satellite images using Trans Deeplab model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published