configuration as below:
• Hardware Platform (Jetson / GPU)
jetson NX
• DeepStream Version
6.0
• JetPack Version (valid for Jetson only)
4.6.2
• TensorRT Version
8.2.1.8
When I tried to run yolov5s-customed model without .engine file , it occured:
(py3) shisun@nx:/opt/nvidia/deepstream/deepstream/source/DeepStream-Yolo$ deepstream-app -c deepstream_app_config.txt
Using winsys: x11
ERROR: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-6.0/source/DeepStream-Yolo/5s_ghost.engine open error
0:00:03.172938201 4960 0x13963670 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1889> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-6.0/source/DeepStream-Yolo/5s_ghost.engine failed
0:00:03.201935543 4960 0x13963670 WARN nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1996> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-6.0/source/DeepStream-Yolo/5s_ghost.engine failed, try rebuild
0:00:03.202025590 4960 0x13963670 INFO nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
Loading pre-trained weights
Loading weights of 5s_ghost complete
Total weights read: 3702174
Building YOLO network
layer input output weightPtr
(0) conv_silu 3 x 640 x 640 32 x 320 x 320 3584
(1) conv_silu 32 x 320 x 320 256 x 320 x 320 12800
(2) maxpool 256 x 320 x 320 256 x 320 x 320 12800
(3) maxpool 256 x 320 x 320 256 x 320 x 320 12800
(4) maxpool 256 x 320 x 320 256 x 320 x 320 12800
(5) route - 1024 x 320 x 320 12800
(6) conv_silu 1024 x 320 x 320 512 x 320 x 320 539136
(7) upsample 512 x 320 x 320 512 x 640 x 640 -
(8) route - 1024 x 640 x 640 539136
(9) upsample 1024 x 640 x 640 1024 x1280 x1280 -
ERROR: [TRT]: 4: [graphShapeAnalyzer.cpp::processCheck::581] Error Code 4: Internal Error ((Unnamed Layer* 19) [Concatenation]_output: tensor volume exceeds (2^31)-1, dimensions are [2048,1280,1280])
deepstream-app: utils.cpp:147: int getNumChannels(nvinfer1::ITensor*): Assertion `d.nbDims == 3’ failed.
Aborted (core dumped)
The problem is here:
Error ((Unnamed Layer* 19) [Concatenation]_output: tensor volume exceeds (2^31)-1, dimensions are [2048,1280,1280])
How to fix this pls?