Skip to content

How to use NMS with Pytorch model (that was converted to ONNX -> TensorRT) #795

Description

@ivanpanshin

All right, so, I have a PyTorch detector SSD with MobileNet. Since I failed to convert model with NMS in it (to be more precise, I converted it, but TRT engine is built in a wrong way with that .onnx file), I decided to leave NMS part to TRT.

In general, there are several ways to add NMS in TRT:

  1. Use graphsurgeon with TensorFlow model and add NMS as graphsurgeon.create_plugin_node
  2. Use CPP code for plugin (https://github.com/NVIDIA/TensorRT/tree/master/plugin/batchedNMSPlugin)
  3. Use DeepStream that has NMS plugin

But, I have a PyTorch model that I converted to onnx and then to TRT without any CPP code (Python only). My question is very simple: how can I combine my current pipeline with the CPP plugin for NMS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module:PluginsIssues when using TensorRT pluginstriagedIssue has been triaged by maintainers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions