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

[Feature] Add BEiT backbone #1404

Merged
merged 47 commits into from
Mar 30, 2022
Merged

Conversation

linfangjian01
Copy link
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

Support BEiT

Modification

Support BEiT

BC-breaking (Optional)

Does the modification introduce changes that break the backward-compatibility of the downstream repos?
If so, please describe how it breaks the compatibility and how the downstream projects should modify their code to keep compatibility with this PR.

Use cases (Optional)

If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.

Checklist

  1. Pre-commit or other linting tools are used to fix the potential lint issues.
  2. The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  3. If the modification has potential influence on downstream projects, this PR should be tested with downstream projects, like MMDet or MMDet3D.
  4. The documentation has been modified accordingly, like docstring or example tutorials.

@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #1404 (d080d84) into master (30864ea) will increase coverage by 0.09%.
The diff coverage is 92.61%.

@@            Coverage Diff             @@
##           master    #1404      +/-   ##
==========================================
+ Coverage   90.22%   90.31%   +0.09%     
==========================================
  Files         136      139       +3     
  Lines        7946     8270     +324     
  Branches     1323     1388      +65     
==========================================
+ Hits         7169     7469     +300     
- Misses        552      565      +13     
- Partials      225      236      +11     
Flag Coverage Δ
unittests 90.31% <92.61%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/core/layer_decay_optimizer_constructor.py 88.37% <88.37%> (ø)
mmseg/models/backbones/beit.py 92.33% <92.33%> (ø)
mmseg/core/__init__.py 100.00% <100.00%> (ø)
mmseg/models/backbones/__init__.py 100.00% <100.00%> (ø)
mmseg/models/necks/__init__.py 100.00% <100.00%> (ø)
mmseg/models/necks/featurepyramid.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30864ea...d080d84. Read the comment docs.



@BACKBONES.register_module()
class BEiT(BaseModule):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think latest backbones should inherit from mmcls.

Copy link
Contributor

Choose a reason for hiding this comment

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

BEiT would first be merged using this repo, and then transferred to mmcls, so does HRFormer.

configs/beit/beit.yml Outdated Show resolved Hide resolved
mmseg/models/necks/featurepyramid.py Outdated Show resolved Hide resolved
mmseg/models/necks/featurepyramid.py Outdated Show resolved Hide resolved
configs/beit/README.md Outdated Show resolved Hide resolved
configs/beit/README.md Outdated Show resolved Hide resolved
configs/beit/README.md Outdated Show resolved Hide resolved
configs/beit/README.md Outdated Show resolved Hide resolved
configs/beit/beit.yml Outdated Show resolved Hide resolved
configs/beit/README.md Outdated Show resolved Hide resolved
configs/beit/beit.yml Outdated Show resolved Hide resolved
@MeowZheng MeowZheng merged commit 24f1563 into open-mmlab:master Mar 30, 2022
mob5566 pushed a commit to mob5566/mmsegmentation that referenced this pull request Apr 13, 2022
* [Feature] Add BEiT backbone

* fix

* fix

* fix

* fix

* add readme

* fix

* fix

* fix

* fix

* fix

* add link

* fix memory

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix test_beit.py

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
ZhimingNJ pushed a commit to AetrexTechnology/mmsegmentation that referenced this pull request Jun 29, 2022
* [Feature] Add BEiT backbone

* fix

* fix

* fix

* fix

* add readme

* fix

* fix

* fix

* fix

* fix

* add link

* fix memory

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix test_beit.py

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
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.

None yet

6 participants