Code Monkey home page Code Monkey logo

cp-cnn's Introduction

Channel-Prioritized Convolutional Neural Network with Sparsity and Multi-fidelity

This repository contains the code to reproduce the core results from the paper Channel-Prioritized Convolutional Neural Networks with Sparsity and Multi-fidelity in the review process.

Dependencies

This work uses Python 3.6.0. Before running the code, you have to install

  • tensorflow==1.4.0
  • numpy==1.13.0
  • pandas==0.20.3
  • Pillow==4.3.0
  • progress==1.3

The above dependencies can be installed using pip by running

pip install -r requirement.txt

Usage

To have a quick start on the experiment of CIFAR-10 by running

bash quick_start.sh <GPU_ID>

Training stage for channel prioritization and network sparsity

python3 train.py  --init_from <pre-trained_net_params.npy> --save_dir <save_directory> --tesla 0 --keep_prob 1  --lambda_s 0.001 --lambda_m 0.001 --decay 0.00005 --prof_type linear

Fine-tuning stage (set tesla=1) for loss aggregation

python3 train.py --init_from <pruned_net_params.npy> --save_dir <save_directory> --tesla 1 --keep_prob 1  --prof_type linear

Testing multi-fidelity inference

python3 test.py --init_from <finetuned_net_params.npy> --output <output_file> --keep_prob 1

To run the experiment on CIFAR-100, please add another arguement --dataset CIFAR-100 in above commands.

If you have questions, please write an email to [email protected].

cp-cnn's People

Contributors

twcmchang avatar

Stargazers

 avatar  avatar

Watchers

 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.