Hi
Can we generate tensorrt engine file using onnx file ??
[property]
gpu-id=0
net-scale-factor=0.017507
model-color-format=0
onnx-file=152_best_7class.onnx
labelfile-path=labels_ship.txt
batch-size=1
network-mode=0
num-detected-classes=7
interval=0
gie-unique-id=1
process-mode=1
network-type=0
infer-on-gie-id=1
infer-on-class-ids=0
cluster-mode=2
maintain-aspect-ratio=1
parse-bbox-func-name=NvDsInferParseYolo
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
engine-create-func-name=NvDsInferYoloCudaEngineGet
The above config file is property of nvinfer element, i have loaded the onnx file with other parameters .
The error am getting is like this:
Linking complete0:00:00.206644865 779650 0x556cff28b670 INFO nvinfer gstnvinfer.cpp:646:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
YOLO config file or weights file is not specified
ERROR: …/nvdsinfer/nvdsinfer_model_builder.cpp:723 Failed to create network using custom network creation function
ERROR: …/nvdsinfer/nvdsinfer_model_builder.cpp:789 Failed to get cuda engine from custom library API
0:00:01.419374027 779650 0x556cff28b670 ERROR nvinfer gstnvinfer.cpp:640:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1943> [UID = 1]: build engine file failed
0:00:01.497162951 779650 0x556cff28b670 ERROR nvinfer gstnvinfer.cpp:640:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2029> [UID = 1]: build backend context failed
0:00:01.497188463 779650 0x556cff28b670 ERROR nvinfer gstnvinfer.cpp:640:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1266> [UID = 1]: generate backend failed, check config file settings
0:00:01.497249115 779650 0x556cff28b670 WARN nvinfer gstnvinfer.cpp:846:gst_nvinfer_start: error: Failed to create NvDsInferContext instance
0:00:01.497255056 779650 0x556cff28b670 WARN nvinfer gstnvinfer.cpp:846:gst_nvinfer_start: error: Config file path: /home/aimluser2/ship_multiple/ship_config_infer_primary_yoloV5.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
Running…
ERROR from element nvinfer: Failed to create NvDsInferContext instance
Error details: gstnvinfer.cpp(846): gst_nvinfer_start (): /GstPipeline:pipeline/GstNvInfer:nvinfer:
Config file path: /home/aimluser2/ship_multiple/ship_config_infer_primary_yoloV5.txt, NvDsInfer Error: NVDSINFER_CONFIG_FAILED
0
can you please help me to solve this…