-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
onnx to tensorrt NonMaxSuppression #523
Comments
I tried writing a layer in ModelImporter:
There is no existing layer/plugin in tensorrt which implements NonMaxSuppression. The closest one is
|
Hi @rgc183, I'm working on a similar problem - this code seems like a good start. You should reference the documentation for the BatchedNMS_TRT Plugin, which describes the inputs/outputs of the plugin. Your code may need to reshape the inputs and outputs to match what the plugin expects. I'm not sure why the BatchNMSPlugin.cpp is asserting inputs[0].nbDims = 3, when the documentation includes the batch dimension. Maybe the plugin automatically adds the batch dimension. For what it's worth, I've been using this PR version of the plugin, which converts batchedNMS to IPluginV2DynamicExt and asserts inputs[0].nbDims = 4, which matches the documentation. I hope this helps - let me know if you make progress on this issue. |
Hi everyone, I’ve been following this thread because I have the same issue. Basically need to register a NonMaximumSupression operation on onnx-tensorrt.
Trying to optimize the model from .onnx to .trt with: I got the following error:
Anyone with a solid advice to get past this issue? |
@zhouyingchaoAI , thanks for reporting. |
Would like to know when this feature ships |
I will close this one, before we have official NonMaxSuppression support, there is a good reference to check in #795, thanks all! |
Hi, how did you work around the problem since I've met the same one? |
Any update on this? |
Description
ERROR: /opt/tensorrt/TensorRT/parsers/onnx/ModelImporter.cpp:134 In function parseGraph:
No importer registered for op: NonMaxSuppression
Environment
TensorRT Version: 7.0
GPU Type: 2080ti
Nvidia Driver Version:
CUDA Version: 10.2
CUDNN Version: 7.6
Operating System + Version: ubuntu18.04
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable): 1.15
PyTorch Version (if applicable): 1.3
Baremetal or Container (if container which image + tag):
Relevant Files
Steps To Reproduce
The text was updated successfully, but these errors were encountered: