GithubHelp home page GithubHelp logo

weitaoatvison / channel_pruning_yq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reproducebyyq/channel_pruning_yq

0.0 1.0 0.0 14 KB

This repo is re-produce for Channel_pruning

License: MIT License

Python 100.00%

channel_pruning_yq's Introduction

Channel_pruning_yq

This repo is re-produce for Channel_pruning, Framework is Caffe.

The original source code :yihui-he.

Introduction

Two main function in my implementation :

Notice:

Now, it is only for native ConvNet such as VGG, not work for multi-branch ConvNet such as ResNet. I don`t implementation channel decompose ,because it is unhelpful in my test experiment!!!! So ,I have 2C not 3C.

File Intro
channel_pruning_one_layer.py This is Channel Pruning reproduct,but only for pruning one layer, you should modify "prune_layer_name" in Line 49 for youself.
channel_pruning_reproduce.py Such as pruning layer "conv2_1", This file tell you how to implement step-by-step. Including Get Feature(), Lasso Regression(), Linear Regression(), Generator New Protobuf(), Generator New Weights()
low_rank_and_channel_pruning.py All funtion in here, such as Low Rank and Channel Pruning(layer-by-layer), It needs two configure file:config.json and config_cratio.json , you can modify them in Line 45 and Line 49.
config.json It is for Low rank configuration, the number obtained from the experiment.
config_cratio.json It is for Channel Pruning(layer-by-layer) configuration, the number means that how many channels will be keep.

Cite

@InProceedings{He_2017_ICCV,
author = {He, Yihui and Zhang, Xiangyu and Sun, Jian},
title = {Channel Pruning for Accelerating Very Deep Neural Networks},
booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
month = {Oct},
year = {2017}
}

Todo

  • support VGG
  • Combination of Conv layer and BN layer
  • support ResNet
  • support Faster RCNN

channel_pruning_yq's People

Contributors

johnson-yue 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.