Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu下yolov5_v5.0的.wts转.engine失败 #1534

Open
silas-yy opened this issue May 31, 2024 · 1 comment
Open

ubuntu下yolov5_v5.0的.wts转.engine失败 #1534

silas-yy opened this issue May 31, 2024 · 1 comment

Comments

@silas-yy
Copy link

配置环境:
ubuntu 20.04
cuda v11.2
TensorRT 8.6.1

About this repo

cmake成功,make成功
yolov5_v5跑的,.pt文件也是从yolov5_v5中下载的yolov5s,.pt转.wts成功

Your problem

sudo ./yolov5 -s ../yolov5s.wts yolov5s.engine s报错:
[05/31/2024-10:57:10] [E] [TRT] 2: [builder.cpp::createCaskKernelLibraryImpl::169] Error Code 2: Internal Error (Assertion validateCaskKLibSize(buffer.size) failed. )
段错误
image
搜出来是版本不兼容,但我之前用trtexec,将onnx模型转为engine模型可以,且测试通过
image

@wang-xinyu
Copy link
Owner

这个报错应该是环境有问题,trt版本和依赖cuda等版本不匹配

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants