Closed accforaus closed 3 years ago
Because NMS only is applied to predictions of the same class, if you hope to do it cross-class, you can set class_agnostic
to
test_cfg=dict(
rpn=dict(
nms_pre=1000,
max_per_img=1000,
nms=dict(type='nms', iou_threshold=0.7),
min_bbox_size=0),
rcnn=dict(
score_thr=0.05,
nms=dict(type='nms', iou_threshold=0.5, class_agnostic=True),
max_per_img=100,
mask_thr_binary=0.5)))
Because NMS only is applied to predictions of the same class, if you hope to do it cross-class, you can set
class_agnostic
totest_cfg=dict( rpn=dict( nms_pre=1000, max_per_img=1000, nms=dict(type='nms', iou_threshold=0.7), min_bbox_size=0), rcnn=dict( score_thr=0.05, nms=dict(type='nms', iou_threshold=0.5, class_agnostic=True), max_per_img=100, mask_thr_binary=0.5)))
Thanks a lot! It looks clear when I set class_agnostic
you advised! you saved my time!
Hi guys, I have some questions about the result in object detection.
I trained the model using custom coco datasets. and when I try inference,
it showed weird results like this:
This image using at training, I expected that objects in the image must have one label. But it showed multiple labels.
Here is the model configuration:
I changed
nms.iou_threshold
, 0.6 to 0.8, but it cannot fix these issues.How can I fix these issues on results?
Thanks for reading this.