In the function
actn_to_bb in the
pascal_mult.ipynb notebook the height and width of the bounding box is defined as follows:
actn_hw = (actn_bbs[:,2:]/2+1) * anchors[:,2:]
However, should it not be the following instead?
actn_hw = 0.5*(actn_bbs[:,2:]+1) * anchors[:,2:]
My reasoning is that
actn_bbs[:,2:] lies in the range of (-1,1) due to the use of tanh to get this value. Adding 1 changes this to (0,2). Halving this will bring it back to (0,1). i.e. you are modifying the anchor height width by a fraction less than one. In the original implementation, this fraction is in the range of (0.5,1.5) instead.