Hi, guys.
I try to run deep sort algorithm in Jetson Nano.
and there are the TensorRT errors.
Please help me out!
Thanks in advanced.
My system is JetPack 4.4, the following pacckages are pre-installed.
cuda 10.2
TensorRT 7.1.0
opencv 4.11
cuDNN 8.0.0
VPI 0.2.0
[TensorRT] ERROR: coreReadArchive.cpp (31) - Serialization Error in verifyHeader: 0 (Magic tag does not match)
[TensorRT] ERROR: INVALID_STATE: std::exception
[TensorRT] ERROR: INVALID_CONFIG: Deserialize the cuda engine failed.
Traceback (most recent call last):
File "simple_test_human_intel.py", line 153, in
method_unit= human_module(init_dict)
File "method_modules/human_module/human_module.py", line 56, in init
self.pose_unit = pose_module(init_dict['pose_cfg'])
File "method_modules/trt_pose_module/trt_pose_module.py", line 83, in init
self.model_trt.load_state_dict(torch.load(OPTIMIZED_MODEL))
File "/home/yuan/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 832, in load_state_dict
load(self)
File "/home/yuan/.local/lib/python3.6/site-packages/torch/nn/modules/module.py", line 827, in load
state_dict, prefix, local_metadata, True, missing_keys, unexpected_keys, error_msgs)
File "/usr/local/lib/python3.6/dist-packages/torch2trt-0.1.0-py3.6.egg/torch2trt/torch2trt.py", line 343, in _load_from_state_dict
AttributeError: 'NoneType' object has no attribute 'create_execution_context'
i sloved this issue by rebuiding the model.