Skip to content
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

Improve averaging checkpoints and creating model #2135

Merged
merged 3 commits into from
Sep 16, 2022

Conversation

zhiqiangdon
Copy link
Contributor

@zhiqiangdon zhiqiangdon commented Sep 15, 2022

  1. Decouple weight sharing in checkpoint averaging. Convert weights to float64 to improve averaging robustness.
  2. Refactor previous create_model into create_model and create_fusion_model to improve modularization. create_model is only in charge of creating a single model, which will be used in creating models in the siamese matcher.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link

Job PR-2135-1167dd7 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2135/1167dd7/index.html

Copy link
Contributor

@sxjscience sxjscience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this. We need to rerun our experiments with larger backbones since the average state becomes float64. @Raldir

@zhiqiangdon zhiqiangdon changed the title Improve averaging checkpoint and creating model Improve averaging checkpoints and creating model Sep 15, 2022
Copy link
Contributor

@bryanyzhu bryanyzhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix, LGTM.

Copy link
Contributor

@suzhoum suzhoum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix and refactor look great! Thanks!

Copy link
Contributor

@FANGAreNotGnu FANGAreNotGnu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@zhiqiangdon zhiqiangdon merged commit 17a6371 into autogluon:master Sep 16, 2022
@zhiqiangdon zhiqiangdon deleted the mm-utils branch September 16, 2022 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants