Skip to content

anbuzin/lit-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segmentation with Lightning

Here I will explore some approaches currently popular withing the segmentation domain. The goal here is to get familiar with the Lightning framework, and gain better knowledge of segmentation and deep learning computer vision in general.

This project is meant as a bootstrap for research in semantic segmentation, and currently has zero warnings in place to prevent faulty configuration.

Data

The dataset used in this notebook is People Clothing Segmentation taken from Kaggle. It's quite small and clean, which makes it manageable for the pet project scope.

Tools

  • PyTorch Lightning is used to build the training pipeline;
  • timm is used to load pretrained feature extractors, optimizers and schedulers;
  • Albumentations is used to handle image preprocessing and augmentation;
  • Hydra is used to manage the configuration.

How to

Train a model

  1. Configure the training pipeline: refer to the configs directory for reference;
  2. Run python3 train.py -cn <target config>.

Add a new architecture

  1. Drop the code in models directory;
  2. Put the factory function as a model_instance._target_ in the pipeline configuration;
  3. Bob's your uncle.

Train on custom data

  1. Create a datamodule with reference to pcs_dataset.py;
  2. Add corresponding configuration in configs/datamodules directory;
  3. Override the default datamodule in the pipeline configuration.

About

This is where I explore what's going on in the segmentation domain of computer vision

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors