Skip to content

Notebooks for training different Semantic Segmentation models using different state of the art methods.

Notifications You must be signed in to change notification settings

adityak2920/semantic-segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semantic Segmentation

Binder

Semantic Segmentation is the process of assigning a label to every pixel in the image. This is in contrast to classification, where a single label is assigned to the entire picture. Semantic segmentation treats multiple objects of the same class as a single entity. On the other hand, there is another type called instance segmentation that treats multiple objects of the same class as distinct individual objects (or instances).

In this repo, I have only shown how to use different semantic segmentation architectures using different frameworks and libraries like fastai, PyTorch, segmentation_models, etc.

Before using these notebooks, run the command:
pip install -r requirements.txt

Then in the notebooks/ section there are several notebooks:

  1. DeepLabV3.ipynb: This notebook contains code for training deeplab model where model architecture is taken from torchvision and training is implemented using fastai.
  2. U-Net(fastai).ipynb: fastai is great library for classification and semantic segmentation tasks specially when it comes to U-Net.So, in this notebook I have implemented training of UNet using fastai only.
  3. U-Net(from scratch).ipynb: In this notebook, I have not used any library build on top of PyTorch. I am building UNet from scratch and then training using torch only.
  4. U-Net(using smp).ipynb: segmentation_models_pytorch is a great library built on top of pytorch to train segmentation models easily. There are several architectures implemented like FPN, U-Net, PSPNet, etc. So, this notebook shows how to train models using segmentation_models_pytorch.
  5. fpn_segmentation.ipynb: Code for training Feature Pyramid Network(FPN) for segmentation using segmentation_models_pytorch.

I have used these notebooks mainly in Kaggle competition for semantic Segmentation. This notebook can also be run in browser, just click on the binder badge to run these notebooks in browser without installing something.

About

Notebooks for training different Semantic Segmentation models using different state of the art methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published