-
Notifications
You must be signed in to change notification settings - Fork 7.2k
support amp training for segmention models #4994
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
Conversation
💊 CI failures summary and remediationsAs of commit aab4e40 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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, thanks @xiaohu2015.
Could you please attach two logs one with --amp and one without it (1 epoch would do fine) that shows the reference scripts still works fine? We don't currently have tests to cover those scripts so that's a final check we do to ensure the code didn't brake somewhere obviously.
@datumbox
no amp:
use amp:
the gpu memory consume reduces a lot, the mean IoU is nearly same. For the train time, maybe the amp is not suppored in the GPU card. |
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.
Thanks for the contribution @xiaohu2015. Keep them coming! :)
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 |
Summary: * support amp training for segmention models * fix lint Reviewed By: NicolasHug Differential Revision: D32694301 fbshipit-source-id: 904803e18783b70182409f048dea076a21c69c58 Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
The pr is about #4509.
Since amp is supported on classification and detection training, I also modify some files to support amp training on segmentation models.
cc @datumbox