-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
refactor GFL head #154
refactor GFL head #154
Conversation
This problem is caused by the different selection of the origin of the coordinate system. Whether to choose the top left corner as the origin of the coordinate system or the center point of the first pixel. I choose to select the top left corner as the origin point, cause after mapping the pixel center point of the input size back to the original image size, the origin is 0.5 times the distance of the downsampling ratio from the real image edge. |
Refactor GFL head
Notice: The center point generated by the refactored code has an offset of 0.5 in the input coordinates from the original GFLHead implemented in MMDetection.
For example: On the feature map which stride=8, the center point coordinate of the first pixel(grid cell) is (4, 4) in the refactored code. But in the MMDetection implemention, the first center point is (3.5, 3.5). In my opinion, (4, 4) should be the correct coordinate.
This may leads to a slightly mAP drop. On nanodet-m the drop is 0.0017. Just several steps of fine-tuning will fix this.