Closed lzd-1230 closed 1 year ago
I am also facing the same issue.
terminate called after throwing an instance of 'thrust::system::system_error' what(): transform: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered Aborted (core dumped)
I am also facing the same issue.
terminate called after throwing an instance of 'thrust::system::system_error' what(): transform: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered Aborted (core dumped)
I've got reply from author recently and it's seems that author haven't support all the yolov8 model such as yolov8-seg in my scenario, so it's not my config question, it's about the projectI've got reply from author recently and it's seems that author haven't support all the yolov8 model such as yolov8-seg in my scenario, so it's not my config question.
环境说明
使用笔记本的3060显卡, cuda11.2, cudnn8.1.1 项目的trt文件是从基于
yolov8n-seg
的模型训练得到的pt文件 经过YOLOv8-TensorRT项目的export-seg.py转换得到onnx
:python .\export-seg.py --weights best.pt --opset 11 --sim --input-shape 1 3 1280 1280 --device cuda:0
然后再通过
trtexec
得到的:trtexec.exe --onnx=best.onnx --saveEngine=yolov8n-seg.trt
模型的输入img_size
为1280x1280
错误日志
尝试解决
尝试过的方案: ①cmake中架构添加了一个86,
set_property(TARGET ${PROJECT_NAME} PROPERTY CUDA_ARCHITECTURES 60 61 62 70 72 75 86)
然后重新编译工程, 但是仍然没用... ②减小推理时的图像大小--size=640
... 后来想想也不对, python是可以进行正确推理的...