Coder Social home page Coder Social logo

resnet's Introduction

ResNet Recurrence

This repository contains codes using TensorFlow to recurrence the ResNet CNN

  1. https://arxiv.org/pdf/1512.03385.pdf
  2. https://arxiv.org/pdf/1603.05027.pdf

datasets: mnist, cifar50

preparation

  1. operation system only Ubuntu16 support the newest TensorFlow, check version the operation system
lsb_release -a

update the operation system to Ubuntu 16.04.2 LTS

  1. python installation and update must install python3 to use the newest TensorFlow
sudo apt install python3
sudo apt-get install --upgrade python3
  1. install pip and pip3 first, install setuptools
get --no-check-certificate  https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz#md5=c607dd118eae682c44ed146367a17e26
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6
python3 setup.py build
sudo python3 setup.py install

second, install pip,pip3

wget --no-check-certificate  https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz#md5=3a73c4188f8dbad6a1e6f6d44d117eeb
tar -zxvf pip-8.0.2.tar.gz
cd pip-8.0.2

python3 setup.py build
sudo python3 setup.py install

third, update pip,pip3

python3 -m pip install --upgrade pip  
  1. begin installing newest TensorFlow(1.8.0)
pip3 install tensorflow    

use the following commands to update python packages

pip list --outdated
sudo pip  install  --upgrade SomePackage
  1. install ROOT ROOT is a CERN developed software tool used in high energy physics for big data processing, statistical analysis, visualisation and storage. just follow the website to install ROOT: https://root.cern.ch/

dataset introduction

  1. MNIST

  2. cifar10

  3. ImageNet

using TensorFlow to construct a CNN

the CNN(convolutional neural network) usually contains 3 parts:

  1. covolutional layer
  2. pooling layer
  3. fully connected layer

function of all part:

  1. fetch the features of the input images
  2. downsample the image

in order to accelerate convergence ReLU used

python3 Plain_Net.py 

using TensorFlow to construct ResNet

python3 Plain_Net.py 

Plot and compare to other result

use ROOT for plotting:

root Plot.c

For the MNIST dataset: The loss function vs. training epoches, the loss function indicate that the CNN converge after about 200 epoches. loss function

use 1000 training data to validate loss function

use 10000 test data set to validate loss function

resnet's People

Contributors

horse007666 avatar

Watchers

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