Code Monkey home page Code Monkey logo

pruned-mobilenet_v2's Introduction

Pruned-MobileNet_v2

Apply the pruning strategy of Network Slimming for MobileNet_v2.

The Caffe implementation of the algorithm is available in link.

Results

The size of the input image is 224x224.

Comparisons of different prune ratios

Step Prune Ratio L1 value Parameters Top1 Accuracy Speed
0 0 0 9.8MB 93.24% 152.0ms
1 0 0.001 9.8MB 92.68% 152.0ms
2 0.3 0.001 7.2MB 91.84% -
3 0.3 + 0.7 * 0.3 = 0.51 0.001 5.4MB 91.26% -
4 0.51 + 0.49 * 0.2 = 0.608 0 4.6MB 92.13% 79.3ms
5 0.608 (merging BN) - 4.5MB 92.13% 58.0ms

Comparisons of speeds on different models

Model Speed on PC Speed on iPhone7p (using NCNN)
ResNet50 about 1000ms 277.8ms
MobileNet v2 152.0ms 41.4ms
Pruned MobileNet v2 (with BN) 79.3ms 18.1ms
Pruned MobileNet v2 (merging BN) 58.0ms 13.6ms
(about 5ms
when the input is resized into 96x96 )

Contact

If you have any problems, please feel free to contact me via [email protected].

pruned-mobilenet_v2's People

Contributors

eezywu 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.