Agnostic NMS when loading from PyTorch Hub #2370
-
Is there a way to use agnostic NMS when loading a custom model from PyTorch Hub? Trying to replicate what I get when using detect.py with --agnostic. I can copy the approach in utils.general.non_max_suppression(agnostic=True) in my script and apply it on each result, but curious if there is a more elegant way. |
Beta Was this translation helpful? Give feedback.
Answered by
glenn-jocher
Mar 5, 2021
Replies: 1 comment 2 replies
-
@c-axel this is not available currently, but if you'd like to submit a PR you can introduce this in the autoShape() class: Lines 168 to 229 in e931b9d |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
c-axel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@c-axel this is not available currently, but if you'd like to submit a PR you can introduce this in the autoShape() class:
yolov5/models/common.py
Lines 168 to 229 in e931b9d