Monday-Leo / Yolov5_Tensorrt_Win10

A simple implementation of tensorrt yolov5 python/c++🔥
175 stars 40 forks source link

OSError: exception: access violation reading 0x0000000000000008 #8

Closed huaiqi220 closed 1 year ago

huaiqi220 commented 1 year ago

CUDA11.5 TensorRT 8.2.5.1 编译后使用Yolov5.exe可以直接调用best.engine进行推理, 编译成Yolov5.dll,python3.11 CDLL提示 FileNotFoundError: Could not find module 'C:\Users\zhuzi\Documents\yolov5\build\Release\yolov5.dll' (or one of its dependencies). Try using the full path with constructor syntax.

设置winmod=1提示 OSError: exception: access violation reading 0x0000000000000008

Chase2816 commented 1 year ago

我遇到了相同的问题,您解决了吗?

huaiqi220 commented 1 year ago

解决了,但是并没有什么准确的解决方案,win11切换tensorRT,CUDA版本多次还是报这个错。Win10 TensorRT-8.4.3.1 + CUDA 11.7 + cudnn8.6.0.163 Visual Studio 2022 MSVC2017 python3.10 YOLOv5 6.0一次成功,希望可以帮到你。