Git Product home page Git Product logo

fcn's Introduction

fcn - Fully Convolutional Networks

https://travis-ci.org/wkentaro/fcn.svg?branch=master

This is Chainer implementation of fcn.berkeleyvision.org.

Features

  • Provide FCN8s model for Chainer. [v1.0.0]
  • Copy caffemodel to chainermodel. [v1.0.0]
  • Forwarding with Chainer for pascal dataset. [v1.0.0]
  • Training with Chainer for pascal dataset. [v2.0.0]
  • Training for APC2015 dataset. [v3.0.0]

License

Copyright (C) 2016 Kentaro Wada
Released under the MIT license

For Beginners

Installation

pip install fcn
fcn_install_trained_data.py

Forwarding

Forwarding is done as below, and computation graph is here.

# Download sample image
wget https://farm2.staticflickr.com/1522/26471792680_a485afb024_z_d.jpg -O sample.jpg

# forwaring of the networks
fcn_forward.py --img-files sample.jpg --gpu -1  # cpu mode
fcn_forward.py --img-files sample.jpg  # gpu mode

https://raw.githubusercontent.com/wkentaro/fcn/master/_images/fcn8s_26471792680.jpg

Original Image: https://www.flickr.com/photos/faceme/26471792680/

For Developers

Installation

git clone https://github.com/wkentaro/fcn.git
cd fcn

python setup.py install
fcn_install_trained_data.py

You need to download pascal VOC2012 dataset from here, and install it as below construction:

- fcn - data - pascal - VOC2012 -- JPEGImages
                                 - SegmentationClass
                                 - ...

Fowarding

Forwarding with trained model in caffe is done as below:

# This downloads caffemodel and convert it to chainermodel
./scripts/caffe_to_chainermodel.py

# forwarding of the networks
./scripts/fcn_forward.py --img-files data/pascal/VOC2012/JPEGImages/2007_000129.jpg

https://raw.githubusercontent.com/wkentaro/fcn/master/_images/fcn8s_2007_000129.jpg

Original Image: http://host.robots.ox.ac.uk/pascal/VOC/voc2012/

Training

./scripts/fcn_train.py

Currently we support only training FCN32s. The learning curve looks like below:

https://raw.githubusercontent.com/wkentaro/fcn/master/_images/fcn32s_learning_curve.png

Forwarding with fcn32s_60000.chainermodel ends with below result:

https://raw.githubusercontent.com/wkentaro/fcn/master/_images/fcn32s_2007_000129.jpg

fcn's People

Contributors

wkentaro avatar yuyu2172 avatar

Watchers

James Cloos avatar  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.