aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 647 forks source link

The maximum number of predicted instances of blendmask network is 100 #593

Open disciplinejzx opened 1 year ago

disciplinejzx commented 1 year ago

Running result of demo/demo.py: [11/16 21:14:27 detectron2]: ../test_img/8/x2.tif: detected 100 instances in 3.65s

Hello, when the number of instances in the test picture I used exceeds 100, the result of running blendmask can only predict 100 instances, and the target of instances outside 100 instances cannot be predicted and segmented. However, when I cut the test picture until the number of instances is less than 100, all instances in the picture can be segmented by prediction.

How can I modify the code to increase the upper limit of the prediction instance?

xunzha commented 11 months ago

adet/config/defaults.py set _C.MODEL.FCOS.POST_NMS_TOPK_TEST = max number ofinstances