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

[Feature] Class agnostic NMS for object detector in torch2onnx #2801

Open
darrenjkt opened this issue Jul 19, 2024 · 0 comments
Open

[Feature] Class agnostic NMS for object detector in torch2onnx #2801

darrenjkt opened this issue Jul 19, 2024 · 0 comments

Comments

@darrenjkt
Copy link

Motivation

Currently, overlapping detections of a different class are not filtered out by NMS when converting the mmdetection model to onnx. The class_agnostic flag in the mmdetection model config does not seem to work. I would like to be able to apply a class_agnostic NMS to the output of my detector.

Currently, for RTMDet I have set my model.test_cfg to the following but the class_agnostic flag does not seem to be working (according to my visualized predictions).

{'max_per_img': 300, 'min_bbox_size': 0, 'nms': {'iou_threshold': 0.01, 'type': 'nms', 'class_agnostic': True}, 'nms_pre': 30000, 'score_thr': 0.001}

I've done some digging but I'm not sure where the NMS is currently being encoded into the onnx model so I apologize if this is an implemented feature that I've missed.

Related resources

No response

Additional context

No response

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

1 participant