Comments (5)
Hi, wetliu
Someone did it on the iphone7 platform, showing that mobilenet with depthwise-conv is almost 10 times faster than the convolution counterpart. Click here(in Chinese).
I have no knowledge about pytorch, I think it is not so difficult to add a depthwise-conv operator into pytorch if it haven't been implemented.
Best,
Zehao
from mobilenet.
Oh, sorry for the confusion. I am wondering if you also compare mobilenet and its counter part on GPU? Thank you.
from mobilenet.
No.
from mobilenet.
It may be faster in mobile devices using low-end cpus which are more about sequential execution, but going to be (much) slower in high-end / high-parallel processors, like GPU. High-end/parallel processors prefer a large chunk of computation at one time, instead of a butch of small computations (like depth-wise convolutions). This is can the reason why mobilenet doesn't show any real-time speedup. Theoretical speedup (multi-add reduction) is totally different from real-time speedup. You can check figure 1 in this NIPS paper, showing L1 regularization/connection pruning can remove 95% connections in conv layers but even shows down the real-time speed in GPUs.
from mobilenet.
Just to other people who will view this issue in the future, the real problem is not the parallel or sequential computing, but the old implementation of convolution operator through im2col and especially, col2im. These two functions in depthwise convolution are not necessary, and will lead to block divergence on GPU (col2im in the case of backpropagation).
The real speed up on the mobilenet is its 1x1 convolution kernel which takes most of time if the depthwise convolution is well optimized.
@wenwei202 Thank you for your comment, but your L1 example is not a very good example here because either you need to change your convolution connection through a sparseMM operator, or you will have to use GEMM on GPU even most of the connects are sparse.
from mobilenet.
Related Issues (20)
- Test single image HOT 3
- How to run in terminal?
- Mobile Net Detection Reshape Problem
- Poor performance on large objects?
- Depthwise convolution
- mobilenet_v1_eval.py has a big bug? HOT 3
- how to set the train and val datasets folder name.
- Do we need to preprocess, i.e. resize images to a fixed predefined image input resolution (for example 256*256) on our own, in order to train properly?
- Using eval_image_classifier.py HOT 1
- during classification ,I am doing performance testing on AWS with inception model flask api with gunicorn (creating multiple process) Error: OOM when allocating tensor with shape[800,1280,3] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc [[Node: Cast = CastDstT=DT_FLOAT, SrcT=DT_UINT8, _device="/job:localhost/replica:0/task:0/device:GPU:0"]] Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
- has anyone tried the mobileNet on KITTI dataset HOT 10
- Loss does not converge HOT 4
- how to train my own classifier with mobilenet
- mobilenet not work HOT 1
- 超参数设置问题
- consul upgrade election error
- What's the meaning of the parameter: group ?
- how to usa VGG to train 448*448 size picture
- 这个官方提供的slim练习代码吗?
- 文献公式解释
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobilenet.