Giter Club home page Giter Club logo

full-stack-filters's Introduction

Full-Stack Filters

Code for Paper: Full-Stack Filters to Build Minimum Viable CNNs (MVNet)

In this paper, we propose a novel convolution operation with full-stack filters and auxiliary masks to reduce redundancy in convolution filters for building minimum viable CNNs, i.e. MVNets. A series of full-stack filters with additional binary masks which requiring negligible memory resource in the proposed convolution method can generate much more inherited sub-filters and achieve approximate performance to the original convolution.

Description

  • MVNet with Full-Stack Filters inference code on CIFAR-10 dataset.
  • We provide the trained model in models/cifar10-s64.th which occupies 15 MB, including 1.0 MB float32 weights and 14.0 MB binary masks stored in int8 format (so it's 1.75 MB in bool format which is not supported in PyTorch yet).

Files description

Requirements: Python 3.6, PyTorch 0.4

  • MaskConv2d in mask_conv.py is the new convolution class with full-stack filters used for replacing nn.Conv2d.
  • mask_vgg.py is the VGG-16 using the proposed full-stack filters.
  • test.py is the test script on CIFAR-10 dataset.

Usage

  1. Download CIFAR-10 python version from cifar-10-python.tar.gz, put it in anywhere you like such as $data/cifar-10-python.tar.gz.
  2. Run python test.py --resume=models/cifar10-s64.th --data-dir=$data in default setting, you will get 93.1% accuracy.

Performance

Performance on CIFAR-10 with VGG-16 as architecture:

For other experimental results, please refer to the original paper.

Citation

If you use these models in your research, please cite:

@article{han2019full,
  title={Full-Stack Filters to Build Minimum Viable CNNs},
  author={Han, Kai and Wang, Yunhe and Xu, Yixing and Xu, Chunjing and Tao, Dacheng and Xu, Chang},
  journal={arXiv preprint arXiv:1908.02023},
  year={2019}
}

full-stack-filters's People

Contributors

iamhankai avatar

Watchers

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