Please provide complete information as applicable to your setup.
• Jetson Xavier NX
• DeepStream Version: 6.0.1
• JetPack Version: 4.6.2
• TensorRT Version 8.2.1.8
• NVIDIA GPU Driver Version CUDA 10.2.300
• Issue Type( questions)
• Deepstream-Yolo: App run failed
I use yolov5s.onnx, and input command ‘deepstream-app -c deepstream_app_config.txt’, and its wrong. I dont know why.
nvidia@nvidia-desktop:~/yolov5-tensorrt/DeepStream-Yolo$ deepstream-app -c deepstream_app_config.txt
Using winsys: x11
ERROR: Deserialize engine failed because file path: /home/nvidia/yolov5-tensorrt/DeepStream-Yolo/model_b1_gpu0_fp32.engine open error
0:00:01.921716540 16460 0x39e64440 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 :/home/nvidia/yolov5-tensorrt/DeepStream-Yolo/model_b1_gpu0_fp32.engine failed
0:00:01.921903387 16460 0x39e64440 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 :/home/nvidia/yolov5-tensorrt/DeepStream-Yolo/model_b1_gpu0_fp32.engine failed, try rebuild
0:00:01.921946779 16460 0x39e64440 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
onnx2trt_utils.cpp:364: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
ModelImporter.cpp:720: While parsing node number 141 [Resize → “onnx::Concat_271”]:
ModelImporter.cpp:721: — Begin node —
ModelImporter.cpp:722: input: “onnx::Resize_266”
input: “onnx::Resize_270”
input: “onnx::Resize_445”
output: “onnx::Concat_271”
name: “Resize_141”
op_type: “Resize”
attribute {
name: “coordinate_transformation_mode”
s: “asymmetric”
type: STRING
}
attribute {
name: “cubic_coeff_a”
f: -0.75
type: FLOAT
}
attribute {
name: “mode”
s: “nearest”
type: STRING
}
attribute {
name: “nearest_mode”
s: “floor”
type: STRING
}
ModelImporter.cpp:723: — End node —
ModelImporter.cpp:726: ERROR: builtin_op_importers.cpp:3422 In function importResize:
[8] Assertion failed: scales.is_weights() && “Resize scales must be an initializer!”
Could not parse the ONNX model
Failed to build CUDA engine
ERROR: Failed to create network using custom network creation function
ERROR: Failed to get cuda engine from custom library API
0:00:02.140975759 16460 0x39e64440 ERROR nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1934> [UID = 1]: build engine file failed
0:00:02.141073903 16460 0x39e64440 ERROR nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2020> [UID = 1]: build backend context failed
0:00:02.141121454 16460 0x39e64440 ERROR nvinfer gstnvinfer.cpp:632:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1257> [UID = 1]: generate backend failed, check config file settings
0:00:02.141196942 16460 0x39e64440 WARN nvinfer gstnvinfer.cpp:841:gst_nvinfer_start:<primary_gie> error: Failed to create NvDsInferContext instance
0:00:02.141227918 16460 0x39e64440 WARN nvinfer gstnvinfer.cpp:841:gst_nvinfer_start:<primary_gie> error: Config file path: /home/nvidia/yolov5-tensorrt/DeepStream-Yolo/config_infer_primary_yoloV5.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
** ERROR: main:707: Failed to set pipeline to PAUSED
Quitting
ERROR from primary_gie: Failed to create NvDsInferContext instance
Debug info: /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(841): gst_nvinfer_start (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInfer:primary_gie:
Config file path: /home/nvidia/yolov5-tensorrt/DeepStream-Yolo/config_infer_primary_yoloV5.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
App run failed