Skip to content

zhengyang95/DeeplabV2-ResNet101-Pytorch-implement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Segmentation network training and inference

This repository contains allows you to train a segmentation network (DeepLabV2) which is based on ResNet-101.

After the network is trained, you can infering pixel-wise masks for given new images and evaluate the accuracy of these masks by using mean Intersection-over-Union (mIoU) metric.

Remember to change all files' paths to your own paths.

Prerequisite

  • Python 3.7, PyTorch 1.1.0, and more in requirements.txt
  • PASCAL VOC 2012 devkit

Usage

Install python dependencies

pip install -r requirements.txt

Download PASCAL VOC 2012 devkit

train the segmentation network

python train_seg.py
  • ALL 3 executing scripts exist in the script directory.
  • The segmentation network can be trained by the ground truth masks or the pseudo-masks generated in a weakly supervised case.

Infering masks (on validation set) by the trained segmentation network

python infer.py

Evaluation the infered masks using mIoU metric

python results_evaluation.py

Acknowledgement

This repository is based on work from: https://github.com/kazuto1011/deeplab-pytorch. Thanks for their impressive work.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages