I found the same issue on a seperate project, spend a lot of time on it, waiting for a solution.
RTX3090
DS 6.4
CUDA 12.2
NVIDIA-SMI 535.154.05
python 3.10.12
pyds 1.1.10
In my case, the config_tracker_xxx.yml, ReID session does not support a .engine file. In your case, the second time failed due to the first time was based on an onnx or ‘uff’ file. This process will create an .engine file. The message is:
[NvMultiObjectTracker] Load engine failed. Create engine again.
[NvMultiObjectTracker] Begin building engine for tracker ReID…
[NvMultiObjectTracker] Serialized plan file cached at location: /path/model.onnx_b100_gpu0_fp16.engine
[NvMultiObjectTracker] Initialized
The second run it found the .engine file path was exist, tried to use it, and failed. Message was:
[NvMultiObjectTracker] Loading TRT Engine for tracker ReID…
[NvMultiObjectTracker] Loading Complete!
Segmentation fault (core dumped)
This issue did not exist in 6.3. In 6.3, if successful, it gives:
[NvMultiObjectTracker] Loading TRT Engine for tracker ReID…
[NvMultiObjectTracker] Loading Complete!
[NvMultiObjectTracker] Initialized
This should also not related to the tensorRT version, as I tried to provided an onnx for nvinfer, it creates an engine file as well, and is functional. This issue only exists in tracker ReID section, both for DeepSort and DCF.
The only ‘solution’ I found was to comment out modelEngineFile, it means everytime I run my project, a lot time had to spend on generating a useless engine file, definitely this is not what I wanted.
I suspect a bug is in initializing/loading engine file in ReID module, using onnx or uff, there was no engine loading process, only converting. Loading engine model in ReID is different with loading engine models in nvinfer module. In nvinfer model, I got a message:
NvDsInferContext[UID 2]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 2]: Use deserialized engine model: /path/model.engine
while there is no such message for loading engine file in ReID (in 6.3) if engine in ReID was successfully loaded.
Hope I can get some help on solving this issue