open-mmlab / mmselfsup

OpenMMLab Self-Supervised Learning Toolbox and Benchmark
https://mmselfsup.readthedocs.io/en/latest/
Apache License 2.0
3.18k stars 428 forks source link

[Fix]: Fix the bug in shape bias #717

Closed YuanLiuuuuuu closed 1 year ago

YuanLiuuuuuu commented 1 year ago

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

Please describe the motivation of this PR and the goal you want to achieve through this PR.

Modification

Please briefly describe what modification is made in this PR.

BC-breaking (Optional)

Does the modification introduce changes that break the backward compatibility of the downstream repositories? 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

Before PR:

After PR:

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 80.98% and project coverage change: -1.26 :warning:

Comparison is base (a1f1dad) 81.84% compared to head (ce94a61) 80.59%.

:exclamation: Current head ce94a61 differs from pull request most recent head 35ef9a2. Consider uploading reports for the commit 35ef9a2 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-1.x #717 +/- ## =========================================== - Coverage 81.84% 80.59% -1.26% =========================================== Files 120 141 +21 Lines 4176 5127 +951 Branches 586 687 +101 =========================================== + Hits 3418 4132 +714 - Misses 645 855 +210 - Partials 113 140 +27 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `80.59% <80.98%> (-1.26%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab) | Coverage Δ | | |---|---|---| | [mmselfsup/datasets/transforms/\_\_init\_\_.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL2RhdGFzZXRzL3RyYW5zZm9ybXMvX19pbml0X18ucHk=) | `100.00% <ø> (ø)` | | | [mmselfsup/datasets/transforms/wrappers.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL2RhdGFzZXRzL3RyYW5zZm9ybXMvd3JhcHBlcnMucHk=) | `100.00% <ø> (ø)` | | | [mmselfsup/engine/hooks/deepcluster\_hook.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL2VuZ2luZS9ob29rcy9kZWVwY2x1c3Rlcl9ob29rLnB5) | `38.88% <0.00%> (-0.55%)` | :arrow_down: | | [mmselfsup/engine/optimizers/lars.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL2VuZ2luZS9vcHRpbWl6ZXJzL2xhcnMucHk=) | `16.12% <ø> (ø)` | | | [mmselfsup/models/algorithms/odc.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9hbGdvcml0aG1zL29kYy5weQ==) | `31.70% <ø> (ø)` | | | [mmselfsup/models/backbones/mae\_vit.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9iYWNrYm9uZXMvbWFlX3ZpdC5weQ==) | `100.00% <ø> (ø)` | | | [mmselfsup/models/backbones/simmim\_swin.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9iYWNrYm9uZXMvc2ltbWltX3N3aW4ucHk=) | `86.95% <ø> (ø)` | | | [mmselfsup/models/heads/latent\_heads.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9oZWFkcy9sYXRlbnRfaGVhZHMucHk=) | `100.00% <ø> (ø)` | | | [mmselfsup/models/losses/swav\_loss.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9sb3NzZXMvc3dhdl9sb3NzLnB5) | `83.01% <ø> (ø)` | | | [mmselfsup/models/necks/densecl\_neck.py](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab#diff-bW1zZWxmc3VwL21vZGVscy9uZWNrcy9kZW5zZWNsX25lY2sucHk=) | `85.71% <ø> (ø)` | | | ... and [76 more](https://codecov.io/gh/open-mmlab/mmselfsup/pull/717?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab) | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-mmlab)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.