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

Cuda12.1+tensorrt10.0 运行C++yolov8工程报错,提示getBindingDimensions 不是 nvinfer1::IExecutionContext成员 代码C2039 #108

Open
yyyyyycui opened this issue Apr 6, 2024 · 3 comments

Comments

@yyyyyycui
Copy link

感谢作者的工程分享,我这边使用Cuda12.1+tensorrt10.0+pytroch2.2的配置。来尝试在win10环境下,运行yolov8 C++推理。
出现报错“getBindingDimensions 不是 nvinfer1::IExecutionContext成员 代码C2039”。
这是否是因为tensorrt版本不是教程中的8.x导致的呢?

此外我这边在编译ONNX的时候也提示没有buildOnly这个参数,去掉后编译成功, tensorrt10.0也没有nvparsers.lib 这个文件
../../../../TensorRT-10.0/bin/trtexec.exe --onnx=yolov8s.onnx --saveEngine=yolov8s.trt --buildOnly --minShapes=images:1x3x640x640 --optShapes=images:4x3x640x640 --maxShapes=images:8x3x640x640

@yyyyyycui
Copy link
Author

解决了,是版本的问题,修改为tensorrt8.6.1.6.版本就解决了

@Yi-hash1
Copy link

Yi-hash1 commented Apr 9, 2024

解决了,是版本的问题,修改为tensorrt8.6.1.6.版本就解决了

想问下你是修改了哪个文件

@yyyyyycui
Copy link
Author

yyyyyycui commented Apr 19, 2024 via email

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