Add SWAG model weight that only the linear head is finetuned to ImageNet1K#5793
Merged
datumbox merged 7 commits intopytorch:mainfrom Apr 11, 2022
Merged
Add SWAG model weight that only the linear head is finetuned to ImageNet1K#5793datumbox merged 7 commits intopytorch:mainfrom
datumbox merged 7 commits intopytorch:mainfrom
Conversation
… frozen trunk weight
24 tasks
datumbox
reviewed
Apr 10, 2022
Contributor
datumbox
left a comment
There was a problem hiding this comment.
Looks good! Only a couple of thoughts. Let me know what you think.
… as recipe. Also change name of previous swag model to SWAG_E2E_V1
|
I would add for both the transforms used during training: I would add this just because using interpolation 3 isn't always standard. Alternatively, you could just mention interpolation 3 in the size section. |
|
Also it might be worth mentioning that they were trained with pytorch mixed precision |
|
The nodes are 8 gpus/node 32GB voltas. |
facebook-github-bot
pushed a commit
that referenced
this pull request
May 5, 2022
… to ImageNet1K (#5793) Summary: * Add SWAG model that only the linear classifier head is finetuned with frozen trunk weight * Add accuracy from experiments * Change name from SWAG_LC to SWAG_LINEAR * Add comment on SWAG_LINEAR weight * Remove the comment docs (moved to PR description), and add the PR url as recipe. Also change name of previous swag model to SWAG_E2E_V1 (Note: this ignores all push blocking failures!) Reviewed By: jdsgomes, NicolasHug Differential Revision: D36095704 fbshipit-source-id: 4a134412cd8f1366cfb55584a1cdecc568e1a78f
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
subtask of #5708
Model Description
This model has trunk weight from weakly supervised learning described in https://arxiv.org/pdf/2201.08371.pdf. The linear head is fine-tuned to IMAGENET1K dataset while the pre-trained trunk weights are frozen.
This model is suitable for users that want to fine tune the pre-trained trunk on other downstream datasets
Linear head Fine-tuning parameters on IMAGENET1K:
Regnet model (for all size 16gf, 32gf, 128gf):
VIsion Transformer (for all size b/16, l/16, h/14):
Validation script and result
Sample script to load model