Code Monkey home page Code Monkey logo

pytorch-fcn's Introduction

pytorch-fcn

Fully Convolutional Networks[1] implemented in PyTorch. Although [2], [3] have implemeted it very well, the purpose of this repository is for me to gain familarity with semantic segmentation with pytorch implementations. Some of the code are borrowed from [2], [3], [4]. Thanks them very much.

Requirements

  • python 3.6
  • pytorch==0.3.0, torchvision, scipy, ...

Note:

  • All the code are developed and tested on Python 3.6 and maybe not support Python 2.x

  • You can install all the python packages one-line by running:

sudo pip3 install -r requirements.txt

Data

Support Pascal VOC 2012 dataset.

  1. Download data by running:
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar
wget http://www.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/semantic_contours/benchmark.tgz
  1. Extract the VOCtrainval_11-May-2012.tar and benchmark_RELEASE.tgz, modify the data path in config.py.

How to use

  • To train the model:
python main.py --phase train
  • To val the model:
python main.py --phase val
  • To test
python main.py --phase test --in_path xxx/xxx.jpg --out_path ./results/

Result

Displayed Raw jpg Displayed Ground truth label Displayed Predictions jpg

Reference

[1] Long J, Shelhamer E, Darrell T. Fully convolutional networks for semantic segmentation[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2015: 3431-3440.

[2] https://github.com/wkentaro/pytorch-fcn

[3] https://github.com/meetshah1995/pytorch-semseg

[4] https://github.com/chenyuntc/pytorch-best-practice

pytorch-fcn's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jinkuih

pytorch-fcn's Issues

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.