https://github.com/matterport/Mask_RCNN/blob/2a7bcfc82294c7856ad63a07cc27a4dfd90696ab/mrcnn/utils.py#L869-L872
why (y2, x2) shift by 1 pixel ?
There are actually two transformations happening in this function:
x1=0, x2=10 includes the pixels 0,1, ...9 but not 10. In the normalized coordinates, though, this doesn't work and the second value of a range is included in the range. So, a range of 0-1 includes pixels 0, 0.1, 0.2, ..., and 1.0. The comment in the function hints at it, but doesn't delve into the details.
Most helpful comment
There are actually two transformations happening in this function:
x1=0, x2=10includes the pixels 0,1, ...9 but not 10. In the normalized coordinates, though, this doesn't work and the second value of a range is included in the range. So, a range of 0-1 includes pixels 0, 0.1, 0.2, ..., and 1.0.The comment in the function hints at it, but doesn't delve into the details.
https://github.com/matterport/Mask_RCNN/blob/2a7bcfc82294c7856ad63a07cc27a4dfd90696ab/mrcnn/utils.py#L863-L864