Support for Custom Plugin Layers in DW 1.2 TensorRT Optimizer Tool?

Hello,

Per my other post on this forum: https://devtalk.nvidia.com/default/topic/1048162/general/how-can-i-create-a-custom-tf-split-tensorrt-layer-to-run-yolo-v3-tiny-on-px2-with-driveworks-/

It is my understanding that I am not able to utilize TensorRT engines that have custom plugin layers and feed GMSL camera input using the Object Detector classes of DriveWorks 1.2. However, from my conversation in that thread, it seems that I should be able to accomplish this by implementing this functionality myself using TensorRT, CUDA, and NvMedia APIs.

I created a TensorRT runtime engine for FasterRCNN using the code provided in the TensorRT 4 sample. Out of curiosity, I attempted to utilize this engine with SampleObjectDetector and got an error concerning a “bad magic number”. I assumed that this probably meant that the only way to utilize the SampleObjectDetector was to go through DW’s TensorRT Optimizer tool. Unfortunately, it seems that this program does not allow you to create TensorRT engines that require custom layer plugins.

After doing all this I was wondering:

  1. Is the “bad magic number” error related to not having created the TensorRT runtime engine with the TensorRT Optimizer tool in DriveWorks 1.2?

  2. Is the optimizer tool the bottleneck that prevents me from using these TensorRT runtime engines with SampleObjectDetector?

  3. Does the TensorRT Optimizer tool in DriveWorks 1.2 support converting UFF / Caffe models with custom plugin layers?

  4. If TensorRT Optimizer tool doesn’t support custom plugin layers, am I supposed to serialize the engine for the neural network via the methods shown in TensorRT 4’s custom plugin layer samples?

  5. What exact version of TensorRT do I need on my workstation to create a usable TensorRT runtime engine for Drive PX2 with Nvidia DRIVE OS 5.0.10?

Thanks in advance for your help!

Anyone from Nvidia able to answer this question?

Dear maxe2470,
The bad magic number error corresponds to TensorRT model not generated using TensorRT Optimization tool in DW 1.2.
DW 1.2 does not support using TensorRT plugin layers. We support this feature in DW 1.5 release which is already part Drive 8.0 release on Drive AGX platform. Note that there are no more releases targeted towards Drive PX2.
Drive OS 5.0.10 is shipped with TensorRT 4.0.0.8