Closed zz7379 closed 3 years ago
test_cfg = dict( rpn=dict( nms_across_levels=False, nms_pre=1000, nms_post=1000, max_num=1000, nms_thr=0.6, min_bbox_size=0, max_per_img=1000), rcnn=dict( score_thr=0.01, nms=dict(type='nms', iou_threshold=0.5), max_per_img=200))
You can change max_per_img, more details can refer to https://mmdetection.readthedocs.io/en/latest/tutorials/config.html#an-example-of-mask-r-cnn
Thank you for your patience ,but it is still not working. I set the max_per_img to 200, trained the model and tested it by demo/image_demo.py. The length of "inference_detector(model, img_pth)" is still 100. @BIGWangYuDong
I am applying the Faster-RCNN to detect the spots on tongue images. There a more than 200 spots on a tongue. How can i modify the number of bounding boxes in Faster-RCNN at test time? Following is my config