-
Notifications
You must be signed in to change notification settings - Fork 7k
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
fix fcos gt_areas calculation #5816
Conversation
Hi @simonJJJ! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Hi @datumbox , can you take a look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simonJJJ LGTM, thanks a lot for patching this. This is definitely a typo which remained undetected.
@xiaohu2015 @zhiqwang @jdsgomes I assume this ended up having little effect on the overall accuracy. Do we want to retrain and confirm?
Hey @datumbox! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
yes, I think it maybe has little effect on the overall accuracy, becuase here we don't have many situations which one position match multiple GTs (it rarely happens with the scale range constraint). But I think we should retrain the model if possible. |
Thanks a lot |
Thanks for the fix @simonJJJ . I am running the training just to make sure the impact is not significant. |
I have re-run the training job and the performance difference does not seem significant. With the fix:
Original results:
So I don't think there is a need to update the pre-trained weights or take any further action. In any case thank you @simonJJJ again for making the fix! |
Agreed. I don't think it's worth releasing a new pair of weights for 0.2 mAP. Soon we can try to retraining FCOS after #5410 is completed to really push its accuracy similarly to what we did with FasterRCNN and RetinaNet. This should give us a material push on the accuracy of several mAP points. |
Summary: Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com> Reviewed By: jdsgomes, NicolasHug Differential Revision: D36095652 fbshipit-source-id: 3b9a75c78b859d20b42d6f7c24917f79fd67a56c
I fix the gt_areas calculation in the FCOS model.