Add ablation experiment results with EfficientNMS_TRT
#290
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unlike other pipelines that deal with yolov5 on TensorRT, we embed the whole post-processing into the Graph with
onnx-graghsurgeon
. We gain a lot with this whole pipeline. The ablation experiment results are below. The first one is the result without runningEfficientNMS_TRT
, and the second one is the result withEfficientNMS_TRT
embedded. As you can see, the inference time is even reduced, we guess it is because the data copied to the device will be much less after doingEfficientNMS_TRT
. (The mean Latency of D2H is reduced from0.868048 ms
to0.0102295 ms
, running on Nivdia Geforce GTX 1080ti, using TensorRT 8.2 with yolov5n6 and scaling images to512x640
.)And
onnx-graphsurgeon
is easy to install, you can just use their prebuilt wheels:The detailed results: