yolov5_deepsort_tensorrt icon indicating copy to clipboard operation
yolov5_deepsort_tensorrt copied to clipboard

请问有人用pyinstaller 生成可执行程序吗?遇到pycuda问题

Open wangliyjs opened this issue 3 years ago • 1 comments

[TensorRT] ERROR: /home/jenkins/workspace/TensorRT/helpers/rel-7.1/L1_Nightly_Internal/build/source/rtSafe/resources.h (460) - Cuda Error in loadKernel: 3 (initialization error) [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 60, in File "demo_trt.py", line 20, in detect File "detector_trt.py", line 86, in init AttributeError: 'NoneType' object has no attribute 'create_execution_context' [16873] Failed to execute script 'demo_trt' due to unhandled exception!

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.

已放弃 (核心已转储)

wangliyjs avatar Dec 21 '21 09:12 wangliyjs

我也有遇到相同的問題,一直無法解決

Akhilesh1004 avatar Jul 31 '22 10:07 Akhilesh1004