cong / yolov5_deepsort_tensorrt

This repo uses YOLOv5 and DeepSORT to implement object tracking algorithm. Also using TensorRTX to transform model to engine, and deploying all code on the NVIDIA Xavier with TensorRT further.
MIT License
176 stars 35 forks source link

[TensorRT] ERROR: coreReadArchive.cpp (38) - Serialization Error in verifyHeader: 0 (Version 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 "demo_trt.py", line 15, in <module> import tracker_trt AttributeError: 'NoneType' object has no attribute 'create_execution_context' ------------------------------------------------------------------- PyCUDA ERROR: The context stack was not empty upon module cleanup. ------------------------------------------------------------------- A context was still active when the context stack was being cleaned up. At this point in our execution, CUDA may already have been deinitialized, so there is no way we can finish cleanly. The program will be aborted now. Use Context.pop() to avoid this problem. --------------------------------------------------- #21

Closed Pacifist-99 closed 1 year ago

Pacifist-99 commented 1 year ago

Im trying build the application in jetson TX2 Tried Jetpack - 4.4.1 and 4.4 Tensorrt- 7.3.1.0 torch- 1.8 torchvision- 0.9.0

Used v4.0 of yolov5 and tensorrtx git and generated TRT engine But still getting this error which says there is mismatch in Tenssorrt version

I don't understand, I have met all the environment requirements you have mentioned but still getting this error

Can you please help on this?

cong commented 1 year ago

Please check whether the classes in TensorRTX has been modified accordingly with YOLO.