Giter Club home page Giter Club logo

pytorch-imagesegmentation's Introduction

A ImageSegmentation Pytorch Implementation of various models and datasets

Introduction

Still working in progress! Trying to include more models and datasets in a similar and simple way.

Datasets

To train and validate the network, this repo use the augmented PASCAL VOC 2012 dataset which contains 10582 images for training and 1449 images for validation.

Training

Make sure to look at the config.py and change it as you like, then run main.py Finally you will get the ckpt and log in checkpoints/

Run 
tensorboard --logdir log 
to see the training log.

TODO

  • Unet, PSPNet, DeepLabV3+
  • Resnet backbones
  • VOC2012 dataset
  • More models including Unet-like Resnet based AutoEncoder ...
  • More backbones including SE-ResneXt101, Xception and Mobile net
  • Deformable CNN
  • More datasets, eg, COCO

Results untill now

Now I had done the experiments on deeplabv3+ and pspnet (one can get the training log under ckpt): Performance with 4 1080ti: Deeplabv3+ on VOC2012 validation with 16 batchsize and 30K iterations. The pretrained model can be got from deeplabv3+

Backbone train/val OS mIoU paper mIoU repo
Resnet101 16 78.85% 78.21%

For MobileNet_V2 with Deeplabv3+:

Backbone Dataset train/val OS mIoU paper mIoU repo Speed
MobileNet_V2 VOC2012 16 -- 69.39% 10ms(512x512)
MobileNet_V2 CitySpcases 16 -- 65.27% 15ms(512x1024)

PSPNet on VOC2012 validation with 16 batchsize and 30K iterations in 10 hours. The pretrained model can be got from pspnet

Backbone mIoU paper mIoU repo
Resnet101 -- 77.61%

Resnet101 based Unet (imgsize 256) on VOC2012 validation with 16 batchsize and 30K iterations in 10 hours. The pretrained model can be got from unet_ae

Backbone mIoU repo
Resnet101 74.77%

Results Results Results

Requirements

Python(3.6) and Pytorch(1.0.0) is necessary before running the scripts. To install the required python packages(expect PyTorch), run

pip install -r requirements.txt

pytorch-imagesegmentation's People

Contributors

silkylove avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.