Issue with driveworks and creation of the tensorrt binary

Description

Hi,
I am trying to build the tensorRT_model.bin but I am facing the following error:
A clear and concise description of the bug or issue.

Environment

a. OS : Nvidia Drive OS 5.2.0
b. Driverworks version : 3.5
c. Board : Custom board
d. Test application : sample_dnn_tensor
e. Execution command : ./sample_dnn_tensor --video=/usr/local/driveworks3.5/data/samples/recordings/suburb0/video_0_roof_front_120_short.h264 --tensorRT_model=/usr/local/driveworks3.5/data/samples/detector/pascal/tensorRT_model.bin

Error

nvidia@tegra-ubuntu:~/workspace/install/bin$ ./sample_dnn_tensor --video=/usr/local/driveworks-3.5/data/samples/recordings/suburb0/video_0_roof_front_120_short.h264 --tensorRT_model=/usr/local/driveworks-3.5/data/samples/detector/pascal/tensorRT_model.bin

Warning: DataPath::getBasePathFor(): ‘DATA_ROOT’ not found in search paths [/home/nvidia/workspace/install/bin/_data /home/nvidia/workspace/install/bin/data /home/nvidia/workspace/install/_data /home/nvidia/workspace/install/data /home/nvidia/workspace/_data /home/nvidia/workspace/data /home/nvidia/_data /home/nvidia/data /home/_data /home/data]

Warning: DataPath::getBasePathFor(): ‘DATA_ROOT’ not found in search paths [/home/nvidia/workspace/install/bin/_data /home/nvidia/workspace/install/bin/data /home/nvidia/workspace/install/_data /home/nvidia/workspace/install/data /home/nvidia/workspace/_data /home/nvidia/workspace/data /home/nvidia/_data /home/nvidia/data /home/_data /home/data]

[23-03-2021 08:30:11] Platform: Detected Drive Xavier P3479

[23-03-2021 08:30:11] TimeSource: monotonic epoch time offset is 1616484416247575

[23-03-2021 08:30:11] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0

[23-03-2021 08:30:11] TimeSource Eth: Lost PTP time synchronizaton. Synchronized time will not be available from this timesource.

[23-03-2021 08:30:11] TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.

[23-03-2021 08:30:11] Platform: number of GPU devices detected 1

[23-03-2021 08:30:11] Platform: currently selected GPU device integrated ID 0

[23-03-2021 08:30:11] Context::getDataPathFromSelfLocation DATA_ROOT found at: /usr/local/driveworks-3.5/data

[23-03-2021 08:30:11] SDK: No resources(.pak) mounted, some modules will not function properly

[23-03-2021 08:30:11] SDK: Create NvMediaDevice

[23-03-2021 08:30:11] SDK: Create NvMedia2D

[23-03-2021 08:30:11] SDK: use EGL display as provided

[23-03-2021 08:30:11] TimeSource: monotonic epoch time offset is 1616484416247575

[23-03-2021 08:30:11] TimeSource: Could not detect valid PTP time source at nvpps. Fallback to eth0

[23-03-2021 08:30:11] TimeSource Eth: Lost PTP time synchronizaton. Synchronized time will not be available from this timesource.

[23-03-2021 08:30:11] TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.

[23-03-2021 08:30:11] Initialize DriveWorks SDK v3.5.75

[23-03-2021 08:30:11] Release build with GNU 7.3.1 from heads/buildbrain-branch-0-gc61a9a35bd0 against Drive PDK v5.2.0.0

[23-03-2021 08:30:11] Initialize DriveWorks VisualizationSDK v3.5.75

[23-03-2021 08:30:11] Initialize DriveWorksGL SDK v3.5.75

[23-03-2021 08:30:13] SensorFactory::createSensor() → camera.virtual, camera-group=a,camera-index=0,camera-type=ar0231-rccb-bae-sf3324,input-type=video,offscreen=0,profiling=1,slave=0,tensorRT_model=/usr/local/driveworks-3.5/data/samples/detector/pascal/tensorRT_model.bin,video=/usr/local/driveworks-3.5/data/samples/recordings/suburb0/video_0_roof_front_120_short.h264

[23-03-2021 08:30:13] CameraVirtual: defaulting to non SIPL

[23-03-2021 08:30:13] CameraBase: pool size set to 8

[23-03-2021 08:30:13] CameraVirtualNvMedia: no seek table found at /usr/local/driveworks-3.5/data/samples/recordings/suburb0/video_0_roof_front_120_short.h264.seek, seeking is not available.

SimpleCamera: Camera image: 1920x1208

Camera image with 1920x1208 at 30 FPS

[23-03-2021 08:30:13] StreamConsumerGL: successfully initialized

[23-03-2021 08:30:13] StreamProducerCUDA: successfully initialized

[23-03-2021 08:30:15] INVALID_CONFIG: The engine plan file is generated on an incompatible device, expecting compute 7.2 got compute 6.1, please rebuild.

[23-03-2021 08:30:15] INVALID_CONFIG: Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.

[23-03-2021 08:30:15] INVALID_CONFIG: Deserialize the cuda engine failed.

[23-03-2021 08:30:15] Driveworks exception thrown: DW_INTERNAL_ERROR: DNN: Unable to load model.

terminate called after throwing an instance of ‘std::runtime_error’

what(): [2021-03-23 08:30:15] DW Error DW_INTERNAL_ERROR executing DW function:

dwDNN_initializeTensorRTFromFile(&m_dnn, tensorRTModel.c_str(), nullptr, DW_PROCESSOR_TYPE_GPU, m_sdk)

at /usr/local/driveworks/samples/src/dnn/sample_dnn_tensor/main.cpp:234

Aborted (core dumped)

nvidia@tegra-ubuntu:~/workspace/install/bin$

Question

My question is how to rebuild tensorRT_model.bin?
Can you please point me to some documentation for build the binary file?
Where can I find the source code for that?
Does the error comes from the binary file?

Thank you

Hi,
This looks like a Jetson issue. We recommend you to raise it to the respective platform from the below link

Thanks!

Hi @uic73446,

If this is same issue, we request you to use following thread to reply.

Thank you.