tensorRTWrapper icon indicating copy to clipboard operation
tensorRTWrapper copied to clipboard

this wrapper can support PRelu?

Open SyGoing opened this issue 6 years ago • 5 comments

SyGoing avatar Jan 20 '19 09:01 SyGoing

HI,@SyGoing. For PRelu, you can just call createPReLUPlugin in PluginFactory.h checked by the layer name. It is implemented by tensorRT, but you need to load the alpha param.

lewes6369 avatar Jan 26 '19 05:01 lewes6369

Thanks for your reply, I have implement the prelu with the pluginFactory while I didn't use the createPReLUPlugin ,since I don't know how to use it . I will read your code again.

Rencently, I have seen somebody using the relu and scale to implement the PRelu Layer for keeping the TensorRT's CBR .

SyGoing avatar Jan 26 '19 06:01 SyGoing

Thanks for your sharing.In my code I just used as LeakyRelu. Could you share the url of the work mentioned above ? What is the network tested?

lewes6369 avatar Jan 26 '19 06:01 lewes6369

My PRelu implementation have not put on the github,while the other one have used the relu and scale method which is good for mtcnn's prelu layer: https://github.com/PKUZHOU/MTCNN_FaceDetection_TensorRT

SyGoing avatar Jan 26 '19 06:01 SyGoing

Thanks. I will have a look :)

lewes6369 avatar Jan 26 '19 06:01 lewes6369