Skip to content

Joaquinecc/UNET-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Road Detection with U-Net

Introduction

This repository provides an implementation of the U-Net architecture for semantic segmentation, specifically focusing on road detection in satellite imagery. The U-Net model is enhanced with modifications for Distributed Data Parallel (DDP) training, enabling faster training across multiple GPUs.

The dataset used in this project is based on road detection and includes satellite images paired with their corresponding segmentation masks.

Dataset

The dataset used in this project is available on Kaggle. It contains high-resolution satellite images and their respective binary masks indicating road regions.

Dataset Structure:

  • Input Images: High-resolution satellite images.
  • Masks: Binary masks where roads are labeled with 1 and the background is labeled with 0.

The dataset is split into:

  • Training: 80% of the data
  • Validation: 15% of the data
  • Testing: 5% of the data

Training Settings

This implementation uses PyTorch's Distributed Data Parallel (DDP) to accelerate training across multiple GPUs. DDP ensures efficient gradient computation and synchronization, enabling faster convergence.

Command to Run the Training:

python main.py --data_path "/path/to/dataset" \
               --total_epochs 100 \
               --save_every 10 \
               --batch_size_train 25 \
               --batch_size_val 8 \
               --checkpoint_path "/path/to/checkpoint.pt"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •