We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
shifts_centers = [ torch.arange(0, size[axis], dtype=torch.int32, device=device) * stride[axis] + int(stride[axis] / 2) for axis in range(self.spatial_dims) ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: