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

./onnx2engine ../resources/deepsort.onnx ../resources/deepsort.engine #36

Open
Mingjie-Chen opened this issue Apr 19, 2022 · 0 comments

Comments

@Mingjie-Chen
Copy link

博主您好,我在onnx转engine哪一步遇到问题Network has dynamic or shape inputs, but no optimization profile has been defined. 我尝试通过将exportOnxx中的torch.onnx.export中的参数dynamic_axes={'input': {0: 'batch_size'}, 'output': {0: 'batch_size'}}删除后,发现可以生成engine并且能跑通整个流程,但是在运行./yolosort时报错Parameter check failed at: engine.cpp::setBindingDimensions::1044......(使用摄像头能运行就是会报错) 我尝试查阅tensortrt的官方文档发现有部分人存在这个问题,官方文档确实提供了一些说明,我查阅了您的代码后发现您写的代码和官方提供的代码sampleDynamicReshape.cpp都是通过定义profile的方式来实现动态推理,但是我这边仍报Error,请问您方便回复下吗

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

1 participant