Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU):4070ti
• DeepStream Version:6.3
• TensorRT Version:8.5
Hi @junshengy
While creating the engine file this error pops up :
Now playing: GST_DEBUG=3
0:00:00.065781742 2366161 0x55645aeeaf20 WARN nvinfer gstnvinfer.cpp:887:gst_nvinfer_start:<second-infer-engine> warning: NvInfer output-tensor-meta is enabled but init_params auto increase memory (auto-inc-mem) is disabled. The bufferpool will not be automatically resized.
0:00:00.065885383 2366161 0x55645aeeaf20 INFO nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<second-infer-engine> NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2002> [UID = 2]: Trying to create engine from model files
ERROR: [TRT]: 3: [builder.cpp::~Builder::307] Error Code 3: API Usage Error (Parameter check failed at: optimizer/api/builder.cpp::~Builder::307, condition: mObjectCounter.use_count() == 1. Destroying a builder object before destroying objects it created leads to undefined behavior.
)
NvDsInferCudaEngineGetFromTltModel: Failed to open TLT encoded model file /home/eegrab/c++/deepstream/FR/models/faciallandmark.etlt
ERROR: [TRT]: 3: [builder.cpp::~Builder::307] Error Code 3: API Usage Error (Parameter check failed at: optimizer/api/builder.cpp::~Builder::307, condition: mObjectCounter.use_count() == 1. Destroying a builder object before destroying objects it created leads to undefined behavior.
)
ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:728 Failed to create network using custom network creation function
ERROR: ../nvdsinfer/nvdsinfer_model_builder.cpp:794 Failed to get cuda engine from custom library API
0:00:01.309847553 2366161 0x55645aeeaf20 ERROR nvinfer gstnvinfer.cpp:676:gst_nvinfer_logger:<second-infer-engine> NvDsInferContext[UID 2]: Error in NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2022> [UID = 2]: build engine file failed
Segmentation fault (core dumped)
the sgie config is as follows:
property:
gpu-id: 0
# model-engine-file: ../../../models/faciallandmark/faciallandmark.etlt_b32_gpu0_int8.engine
tlt-model-key: nvidia_tlt
tlt-encoded-model: faciallandmark.etlt
int8-calib-file: faciallandmark_cal.txt
#dynamic batch size
batch-size: 32
## 0=FP32, 1=INT8, 2=FP16 mode
network-mode: 1
num-detected-classes: 1
output-blob-names: 'softargmax;softargmax:1;conv_keypoints_m80'
#0=Detection 1=Classifier 2=Segmentation 100=other
network-type: 100
# Enable tensor metadata output
output-tensor-meta: 1
#1-Primary 2-Secondary
process-mode: 2
gie-unique-id: 2
operate-on-gie-id: 1
net-scale-factor: 1.0
offsets: '0.0'
input-object-min-width: 5
input-object-min-height: 5
#0=RGB 1=BGR 2=GRAY
model-color-format: 2
class-attrs-all:
pre-cluster-threshold: 0.0
any help is highly appreciated.