-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature] Add TIMM and HuggingFace wrappers to build classifiers from them directly. #1102
Conversation
Codecov ReportBase: 0.02% // Head: 90.19% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-1.x #1102 +/- ##
============================================
+ Coverage 0.02% 90.19% +90.17%
============================================
Files 121 140 +19
Lines 8217 10383 +2166
Branches 1368 1645 +277
============================================
+ Hits 2 9365 +9363
+ Misses 8215 798 -7417
- Partials 0 220 +220
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
… them directly. (open-mmlab#1102) * [Feature] Add TIMM and HuggingFace wrappers to build classifiers from them directly. * Support `with_cp` and add docstring. * Add unit tests. * Update CI. * Update docs.
Motivation
Pytorch-image-models and HuggingFace are famous model hubs, this PR can integrate their models in mmcls and use mmcls to train and inference models come from timm and huggingface directly.
Use cases
To train a model from TIMM
For example, to train a ResNet-50 model from timm with our vit-mae schedule.
Use config file as below
To fine-tune a model from hugging-face
For example, to fine-tune a ResNet-50 model from hugging face on CIFAR dataset.
Use config file as below
To inference a TIMM model
To inference a HuggingFace model
Checklist
Before PR:
After PR: