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

yolov5_detector.cpp在多批次下报错 #13

Open
Tristesse-stk opened this issue Sep 24, 2021 · 1 comment
Open

yolov5_detector.cpp在多批次下报错 #13

Tristesse-stk opened this issue Sep 24, 2021 · 1 comment

Comments

@Tristesse-stk
Copy link

如题,yolov5_detector.cpp在推理阶段时如果输入的batch是多个的话(即大于1)
yolov5-detector输入多batch
那么会报以下错误:
yolov5-detector报错
请问有可能是什么原因导致的呢?

@ttanzhiqiang
Copy link
Owner

你需要重新生成onnx(batch=2),然后再使用这个代码生成trt文件

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