TensorRT-SSD icon indicating copy to clipboard operation
TensorRT-SSD copied to clipboard

Do I just need to implement the softmax layer ?

Open ljq19950723 opened this issue 6 years ago • 9 comments

Firstly,thank you for your code.And I compared the pluginImplement.cpp of your code with the samplePlugin.cpp of TensorRT's samplePlugin.Do I only need to implement the softmax layer ?And the mobilenet can work on TensorRT.

ljq19950723 avatar Mar 22 '18 08:03 ljq19950723

You need to implement the depthwise layer, too.

chenzhi1992 avatar Mar 23 '18 02:03 chenzhi1992

And Do I need to implement the class SoftmaxPlugin's functions that inherited from the parent class only?Or any other functions?

ljq19950723 avatar Mar 23 '18 07:03 ljq19950723

Yes, you need to implement the SoftmaxPlugin

chenzhi1992 avatar Mar 23 '18 07:03 chenzhi1992

I found the channels of output blobs from plugin reshape layer is actually the number of classes, hence off-the-shelf across-channel softmax layer can satisfy demand. @chenzhi1992

xchani avatar Apr 05 '18 14:04 xchani

Allright, you can verify that the result is correct.

chenzhi1992 avatar Apr 10 '18 00:04 chenzhi1992

@chenzhi1992

Do you have plan to release the code of softmax and depthwise layer?

twmht avatar Apr 11 '18 07:04 twmht

@xchani Did off-the-shelf across-channel softmax worked for you ?

linux-devil avatar Apr 18 '18 06:04 linux-devil

@linux-devil NO. Though off-the-shelf softmax and my own implemented softmax layer both operate across-channel, off-the-shelf softmax still produce wrong results. I cannot figure it out why it happends.

xchani avatar Apr 20 '18 10:04 xchani

@xchani Did it work with your softmax implementation. Can you please share it and explain why the dimension of last layer is 12764?. Thanks :-)

Optimus1072 avatar May 17 '18 09:05 Optimus1072