Giter Site home page Giter Site logo

yichuan9527 / pytorch-residual-networks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hughperkins/pytorch-residual-networks

0.0 2.0 0.0 3.19 MB

This is a pytorch implementation of ["Deep Residual Learning for Image Recognition",Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun](http://arxiv.org/abs/1512.03385) the winners of the 2015 ILSVRC and COCO challenges.

License: zlib License

Shell 2.00% Lua 55.28% Python 42.72%

pytorch-residual-networks's Introduction

Deep Residual Learning for Image Recognition

This is a pytorch implementation of "Deep Residual Learning for Image Recognition",Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun the winners of the 2015 ILSVRC and COCO challenges.

It's forked from Michael Wilber's torch-residual-networks . The data loading and preprocessing have been moved from the lua side into the python side, so you can easily modify the data loading and preprocessing, using the python tools and libraries you're used to using.

For full readme on the original torch-residual-networks library, please see https://github.com/gcr/torch-residual-networks/network

How to use

  • You need at least CUDA 7.0 and CuDNN v4
  • Install Torch:
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch
# install dependencies.  To install everything:
  bash install-deps
# Or, if you're on ubuntu, you only need the following dependencies:
  sudo apt-get update -y
  sudo apt-get install -y wget git gcc g++ cmake libffi-dev \
       libblas-dev liblapack-dev libatlas-base-dev gfortran libreadline-dev
# install torch
./install.sh
  • install torch cudnn and nninit:
luarocks install cudnn
luarocks install nninit
  • Setup python (tested on 2.7 for now; 3.4 will follow):
sudo apt-get install python2.7-dev
virtualenv -p python2.7 ~/env27
source ~/env27/bin/activate
pip install docopt
pip install numpy
  • Install pytorch:
git clone https://github.com/hughperkins/pytorch ~/pytorch
cd ~/pytorch
source ~/torch/install/bin/torch-activate
./build.sh
  • clone this repo:
git clone https://github.com/hughperkins/pytorch-residual-networks ~/pytorch-residual-networks
cd ~/pytorch-residual-networks
  • Download cifar dataset: ./download-cifar.sh
  • Run python run.py

Possible issues, and how to deal with them

  • Something about no file './cunn.lua'
    • reinstall cunn luarocks install cunn

Changes

2016 April 12:

  • working now :-)

2016 April 11:

pytorch-residual-networks's People

Contributors

gcr avatar hughperkins avatar kaixhin avatar ppwwyyxx avatar

Watchers

 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.