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

make yolo报错 #19

Open
Yi-hash1 opened this issue Apr 14, 2024 · 2 comments
Open

make yolo报错 #19

Yi-hash1 opened this issue Apr 14, 2024 · 2 comments

Comments

@Yi-hash1
Copy link

image
NVInfer: 3: [executionContext.cpp::setBindingDimensions::944] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::setBindingDimensions::944, condition: profileMaxDims.d[i] >= dimensions.d[i]. Supplied binding dimension [2,3,640,640] for bindings[0] exceed min ~ max range at index 0, um dimension in profile is 1, minimum dimension in profile is 1, but supplied dimension is 2.

@Yi-hash1
Copy link
Author

求大佬解答下,用的静态batch

@Melody-Zhou
Copy link
Owner

image NVInfer: 3: [executionContext.cpp::setBindingDimensions::944] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/executionContext.cpp::setBindingDimensions::944, condition: profileMaxDims.d[i] >= dimensions.d[i]. Supplied binding dimension [2,3,640,640] for bindings[0] exceed min ~ max range at index 0, um dimension in profile is 1, minimum dimension in profile is 1, but supplied dimension is 2.

似乎是你的 batch size 2 超过了允许的最大值 1,你可以尝试下:

  1. app_yolo.cpp 中 test_batch_size 设置为你导出的静态 onnx 的batch,具体可参考:app_yolo.cpp#L140
  2. 使用动态 batch 的 onnx 模型

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