Skip to content

FlagArihant2000/unet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

U - Net for Image Segmentation

U - Net is a popular architecture used for semantic segmentation. It was first published with the aim of segmentation in medical images. It is also one of the initial architectures on semantic segmentation, that involves the use of an encoder - decoder framework.

An encoder - decoder framework is a useful concept in deep learning, that utilises the representation of high level features in lower dimensional space. The encoder network takes the image as input, followed by a series of convolutional layers and downsampling operations. It is from the low dimensional space obtained from encoder that the decoder framework is used for upsampling. A few convolutional layers are also used and are considered as correction stages after an upsampling is done.

In U - Net, the corresponding stage in encoder framework is copied and cropped onto the the decoder step. Intuitively, this represents the incorporation of lower level features that are obtained during the initial stages of convolutions.

Implementation Pipeline

  1. Identify pixel classes in labels.
  2. Loading training, validation and test data.
  3. Initialization of architecture. Here, vanilla U - Net and ResNet based U - Net is implemented.
  4. Initialization of cross entropy loss, with Adam optimizer.
  5. Set number of epochs and start the training loop. Perform validation after one iteration over the train data. Store the training and validation loss at each step. Plot the graph after the required number of epochs is attained.
  6. Use test data for estimating the average Jaccard Index (IoU) over the set.
  7. Results visualization.

Original Paper: Link

To Do: Add results (for vanilla U - Net and ResNet based U - Net).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages