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
[WIP] continue PR #784 #1221
[WIP] continue PR #784 #1221
Conversation
please provide the performance comparison before and after using the hook |
Codecov Report
@@ Coverage Diff @@
## master #1221 +/- ##
==========================================
- Coverage 68.27% 68.06% -0.21%
==========================================
Files 160 160
Lines 10599 10701 +102
Branches 1937 1965 +28
==========================================
+ Hits 7236 7284 +48
- Misses 2979 3026 +47
- Partials 384 391 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Run Faster R-CNN with:
|
Done, updated in comments. |
hi, have you tested the |
I have updated the test results in the comment. And I have added unit tests that covered the fp16 related hook, but codecov doesn't recognize them. I don't know why. |
|
|
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.
LGTM
Did each experiment use the same learning rate? |
Yes, since we use |
Including experiments that set cumulative_iters=1? Shouldn't the learning rate be reduced to half? |
Hi, can you answer my earlier question? |
Right, usually we need to reduce the learning rate when reducing the batch size, but these experiments are just used to check if |
Motivation
This PR is the update of PR #784, to fix #190
Modification
Based on #784, add docstring and unit tests, fix a typo, apply changes request.
Use cases
To use
GradientCumulativeOptimizerHook
, modify the config toPerformance Validation
Faster RCNN (Without BatchNorm, thanks @BIGWangYuDong)
ResNet-34 (With BatchNorm)
ResNet-50 (Fp16, With BatchNorm)
Checklist