CenterNet2 icon indicating copy to clipboard operation
CenterNet2 copied to clipboard

why add strides_expanded / 2?

Open pengcheng001 opened this issue 4 years ago • 1 comments

📚 Documentation

In the CenterNet2/centernet/modeling/dense_heads/centernet.py file, when calculating the distribution of center points, centers_discret = ((centers_expanded / strides_expanded).int() * strides_expanded).float() + trides_expanded / 2 # M x N x 2, why add strides_expanded / 2?

pengcheng001 avatar May 06 '21 07:05 pengcheng001

Thank you for the question and sorry for the delayed response. This follows RetinaNet to put the point in the center of each grid. This is useful when the output stride is large (i.e., in FPN the maximal stride is 128).

xingyizhou avatar Jun 24 '21 21:06 xingyizhou