I created a net of SSD using TensorRT with Plugin layers such as Permute, Flatten, Reshape and so on. While I run the net, it turns out the result as follow:
We can see that the location of class 8 is same while confidence is different. I’m not sure what cause the different.
I also have some questions. I create Normalize layer as:
I change scales.values to 13 or 1, the result is a bit different but not very different. I think scales.values may be read from the modelfile and the value such as 20 is just initialized value. Will this different have a great impact?
Could someone give me some suggestions? Thank you in advance!
For debugging plugin implementation, it’s recommended to compare the results layer by layer to narrow down the error.
createSSDNormalizePlugin doesn’t in our TensorRT document and also not in our support scope.
It may still under developing, and we don’t have information can share with you.
Hi, AastaLLL, thanks for your reply. I still have a question. Plugin layer “createSSDNormalizePlugin” is in the NvInferPlugin.h as follows:
/*
* \brief The Normalize plugin layer normalizes the input to have L2 norm of 1 with scale learnable.
* \params scales scale weights that are applied to the output tensor
* \params acrossSpatial whether to compute the norm over adjacent channels (acrossSpatial is true) or nearby spatial locations (within channel in which case acrossSpatial is false)
* \params channelShared whether the scale weight(s) is shared across channels
* \params eps epsilon for not diviiding by zero
*/
INvPlugin * createSSDNormalizePlugin(const Weights *scales, bool acrossSpatial, bool channelShared, float eps);
INvPlugin * createSSDNormalizePlugin(const void * data, size_t length);
Dose it support the SSD layer whose type is “Normalize”?
Hi, AastaLLL, I compare the results of each layer. I found that the input datas of mbox_conf_reshape layer are the same between my TensorRT net and caffe-ssd net, while the input datas of mbox_conf_flatten layer are different between the two nets. Net layers connection is just as follows:
I’m considering there may be some different between softmax layer between the two nets. I can’t get the input datas of softmax layer for the softmax layer is not my plugin layer and it is packaged up. So I need some advice.
createSSDNormalizePlugin is not in our official document and also not in our support scope.
We are sorry that there is no extra information can share with you.
Hi, AastaLLL, thanks for your apply, I still have a question for the softmax layer. I compare the results of each layer. I found that the input datas of mbox_conf_reshape layer are the same between my TensorRT net and caffe-ssd net, while the input datas of mbox_conf_flatten layer are different between the two nets. Net layers connection is just as follows:
I’m considering there may be some different between softmax layer between the two nets. I can’t get the input datas of softmax layer for the softmax layer is not my plugin layer and it is packaged up. So I need some advice.