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

多batch #10

Open
aowuaaa opened this issue Apr 22, 2024 · 3 comments
Open

多batch #10

aowuaaa opened this issue Apr 22, 2024 · 3 comments

Comments

@aowuaaa
Copy link

aowuaaa commented Apr 22, 2024

大佬,我把batch设为8导出的engine,只能对第一张图进行预测。请问您尝试过多batch预测吗,谢谢谢谢

@xiaocao-tian
Copy link
Owner

这个代码只是对单张图片或视频做推理的,您可以考虑多线程

@aowuaaa
Copy link
Author

aowuaaa commented Apr 24, 2024

这个代码只是对单张图片或视频做推理的,您可以考虑多线程

感谢回复!请问您有关于多线程的案例吗,我初学trt还不太明白。

@xiaocao-tian
Copy link
Owner

直接使用C++多线程调用TensorRT模型就可以了,线程多的话可能会影响推理速度

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