-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] Support EfficientFormer #954
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #954 +/- ##
==========================================
+ Coverage 85.86% 86.13% +0.26%
==========================================
Files 136 140 +4
Lines 9306 9674 +368
Branches 1611 1677 +66
==========================================
+ Hits 7991 8333 +342
- Misses 1076 1090 +14
- Partials 239 251 +12
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. |
if idx in self.out_indices: | ||
norm_layer = getattr(self, f'norm{idx}') | ||
|
||
if idx == len(self.network) - 1 and x.dim() == 3: |
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.
x.dim() == 3
? why do we need this condition?
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.
in case the vit-num
is 0 in arch
.
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
* add efficient backbone * Update Readme and metafile * Add unit tests * fix confict * fix lint * update efficientformer head unit tests * update README * fix unit test * fix Readme * fix example * fix typo * recover api modification * Update EfficiemtFormer Backbone * fix unit tests * add efficientformer to readme and model zoo
Motivation
Support EfficientFormer, Arxiv | Github
Use cases (Optional)
Checklist
Before PR:
After PR: