Closed xiaohu2015 closed 4 years ago
@xiaohu2015 we do not use max
here because we hope a single location can make multiple guesses.
@tianzhi0549 you use this trick because fcos has no dense anchors, so this trick maybe helpful to improve recall. But I have found that the code of mmdetection
simply use the max
,I want to know this trick can affect model performance very much?
@xiaohu2015 it's NOT something specific to FCOS. RetinaNet in maskrcnn_benchmark uses the same trick as well. Thus, it should not be related to the elimination of anchor boxes.
@tianzhi0549 OK, thanks
Line1: why not
candidate_inds = box_cls.max(dim=2)[0] > self.pre_nms_thresh
, meaning get the class of max probablity.