Skip to content

Implementation of several state of the art methods for Binary Segmentation in PyTorch

License

Notifications You must be signed in to change notification settings

saeedizadi/binseg_pytoch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AECNN: Adversarial and Enhanced Convolutional Neural Networks

Abstract

Method for segmenting gastrointestinal polyps from colonscopy images uses an adversarial and enhanced convolutional neural networks (AECNN). As the number of training images is small, the core of AECNN relies on fine-tuning an existing deep CNN model (ResNet152). AECNN’s enhanced convolutions incorporate both dense upsampling, which learns to upsample the low-resolution feature maps into pixel-level segmentation masks, as well as hybrid dilation, which improves the dilated convolution by using different dilation rates for different layers. AECNN further boosts the performance of its segmenter by incorporating a discriminator competing with the segmenter, where both are trained through a generative adversarial network formulation.

Keywords

Segmentation, Binary segmentation, Deep learning, polyp segmentation, Endoscopy analysis

Cite

If you use our code, please cite our paper: AECNN: Adversarial and Enhanced Convolutional Neural Networks

The corresponding bibtex entry is:

@incollection{izadi2021aecnn,
  title={AECNN: Adversarial and Enhanced Convolutional Neural Networks},
  author={Izadi, Saeed and Hamarneh, Ghassan},
  booktitle={Computer-Aided Analysis of Gastrointestinal Videos},
  pages={59--62},
  year={2021},
  publisher={Springer}
}

The source code

The implementation for several state of the art binary segmentation method in PyTorch. This repo was developed for participating in "Endoscopic Vision Challenge - Gastointetinal Image Analysis 2018". And we won the 2nd place for polyp segmentation using DUCHDC model.

Here are the implemented models:

  • [FCN8]
  • [FCN16]
  • [FCN32]
  • [SegNet]
  • [PSPNet]
  • [UNet]
  • [Residual UNet]
  • [DUC]
  • [duchdc]
  • [LinkNet]
  • [FusionNet]
  • [GCN]

Usage

For quick hints about commands:

python main.py -h

Modify the condiguration in the settings.py file

Training

After customizing the settings.py, use the following command to start training

python main.py --cuda train

Evaluation

For evaluation, put all your test images in a folder and set path in the settings.py. Then run the following command:

python main.py --cuda eval

The results will be place in the results directory

About

Implementation of several state of the art methods for Binary Segmentation in PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages