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 Greenmim Inference #677

Open
wants to merge 18 commits into
base: dev-1.x
Choose a base branch
from

Conversation

xfguo-ucas
Copy link

Motivation

GreenMIM Support

Modification

  • backbone: add swintransformer with greenmim
  • head and neck: add some features

Checklist

Before PR:

  • Pre-commit or other linting tools are used to fix the potential lint issues.
  • Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
  • The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
  • The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
  • CLA has been signed and all committers have signed the CLA in this PR.

@wangbo-zhao wangbo-zhao changed the title add greenmim infer [Feature] Add Greenmim Inference Jan 17, 2023
@wangbo-zhao wangbo-zhao self-assigned this Jan 17, 2023
@wangbo-zhao
Copy link
Collaborator

Please do not forget to fix the lint.

@wangbo-zhao
Copy link
Collaborator

wangbo-zhao commented Feb 19, 2023

Please move mmselfsup/models/losses/greenmim_loss.py to ./project

@codecov
Copy link

codecov bot commented Feb 19, 2023

Codecov Report

Base: 81.84% // Head: 80.36% // Decreases project coverage by -1.48% ⚠️

Coverage data is based on head (db9f4b3) compared to base (a1f1dad).
Patch coverage: 79.56% of modified lines in pull request are covered.

❗ Current head db9f4b3 differs from pull request most recent head aae08f2. Consider uploading reports for the commit aae08f2 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           dev-1.x     #677      +/-   ##
===========================================
- Coverage    81.84%   80.36%   -1.48%     
===========================================
  Files          120      142      +22     
  Lines         4176     5140     +964     
  Branches       586      688     +102     
===========================================
+ Hits          3418     4131     +713     
- Misses         645      869     +224     
- Partials       113      140      +27     
Flag Coverage Δ
unittests 80.36% <79.56%> (-1.48%) ⬇️

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

Impacted Files Coverage Δ
mmselfsup/datasets/transforms/__init__.py 100.00% <ø> (ø)
mmselfsup/datasets/transforms/wrappers.py 100.00% <ø> (ø)
mmselfsup/engine/hooks/deepcluster_hook.py 38.88% <0.00%> (-0.55%) ⬇️
mmselfsup/engine/optimizers/lars.py 16.12% <ø> (ø)
mmselfsup/models/algorithms/odc.py 31.70% <ø> (ø)
mmselfsup/models/backbones/mae_vit.py 100.00% <ø> (ø)
mmselfsup/models/backbones/simmim_swin.py 86.95% <ø> (ø)
mmselfsup/models/heads/latent_heads.py 100.00% <ø> (ø)
mmselfsup/models/losses/greenmim_loss.py 0.00% <0.00%> (ø)
mmselfsup/models/losses/swav_loss.py 83.01% <ø> (ø)
... and 77 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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wangbo-zhao
Copy link
Collaborator

Please add a README in projects/greenmim. You can refer to projects/fgia_accv2022_1st/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants