Skip to content

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

Open
@Mingjie-Chen

Description

@Mingjie-Chen

博主您好,我在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,请问您方便回复下吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions