MobileNet-Caffe icon indicating copy to clipboard operation
MobileNet-Caffe copied to clipboard

BatchNorm consuming a lot of time

Open leochli opened this issue 7 years ago • 2 comments

Hi shicai,

Have you evaluated the time performance of mobilenetv1 & v2? I found that the bn layer and linear layer are very time consuming both in CPU-only and GPU-only cases. Is the eps setting really necessary for the BN layer?

leochli avatar Jun 11 '18 03:06 leochli

Try to use the DepthwiseConvolution layer instead of Convolution type, if the group parameter is not 1. The DepthwiseConvolution implementation can be found here

basaltzhang avatar Dec 29 '18 07:12 basaltzhang

Can someone update the time performance for mobilenets? i am getting it ~300ms for googlenet. Want to verify if its correct. tested on S10

AnPay avatar May 02 '19 09:05 AnPay