Tencent / ncnn

ncnn is a high-performance neural network inference framework optimized for the mobile platform
Other
20.38k stars 4.16k forks source link

ncnn是否可以支持relu6层? #647

Closed yulong112 closed 5 years ago

yulong112 commented 5 years ago

想用mobilenetv2-ssdlite,但是其中有relu6层,请问可以不可以在ncnn中支持该层? I wanna use mobilenetv2-ssdlite, but a new layer called "relu6" is conluded. Can ncnn support this layer?

NEU-Gou commented 5 years ago

If you use caffe2ncnn, relu6 layer will be transferred to clip layer

yulong112 commented 5 years ago

If you use caffe2ncnn, relu6 layer will be transferred to clip layer @NEU-Gou Thanks! Does the transformation from relu6 layer to clip layer have any influence on accuracy?

NEU-Gou commented 5 years ago

It should not. Clip to [0,6] works exactly the same as relu6.

nihui commented 5 years ago

yes, we convert relu6 to clip(0,6), should work out of box