You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think your idea of using int(stride[axis] / 2) is a great approach. However, I’m wondering if it might be better to use int(stride[axis] / 2 + 0.5) instead, to account for the fractional part that gets truncated by int(). What are your thoughts on this adjustment?
btw both methods would cause mismatch elements when running the test cases in test_anchor_box.py.
Describe the bug
Anchors should be placed ideally in the middle of a grid cell.
However, this is not the case here:
MONAI/monai/apps/detection/utils/anchor_utils.py
Lines 253 to 258 in 12d00ce
Expected behavior
The anchors should be placed ideally in the middle of a grid cell.
Possible fix
This could probably be fixed by simply changing these lines to:
The text was updated successfully, but these errors were encountered: