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] Mobilenet Series Search Space #82

Merged
merged 21 commits into from
Mar 7, 2022

Conversation

pppppM
Copy link
Collaborator

@pppppM pppppM commented Feb 16, 2022

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:

  • 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 tests 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.

@pppppM pppppM added the WIP label Feb 16, 2022
@pppppM pppppM requested a review from humu789 February 16, 2022 07:13
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #82 (a187968) into master (c5a097b) will increase coverage by 0.77%.
The diff coverage is 85.23%.

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #82      +/-   ##
==========================================
+ Coverage   57.18%   57.95%   +0.77%     
==========================================
  Files          83       86       +3     
  Lines        2966     3080     +114     
  Branches      540      570      +30     
==========================================
+ Hits         1696     1785      +89     
- Misses       1191     1211      +20     
- Partials       79       84       +5     
Flag Coverage Δ
unittests 57.95% <85.23%> (+0.80%) ⬆️

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

Impacted Files Coverage Δ
...tures/components/backbones/searchable_mobilenet.py 75.60% <75.60%> (ø)
mmrazor/models/ops/mb_series.py 95.65% <95.65%> (ø)
...els/architectures/components/backbones/__init__.py 100.00% <100.00%> (ø)
mmrazor/models/ops/__init__.py 100.00% <100.00%> (ø)
mmrazor/models/ops/common.py 100.00% <100.00%> (ø)
mmrazor/models/distillers/base.py 36.92% <0.00%> (-5.34%) ⬇️
mmrazor/utils/setup_env.py 95.45% <0.00%> (-4.55%) ⬇️
mmrazor/models/mutables/mutable_module.py 75.00% <0.00%> (-3.05%) ⬇️
mmrazor/models/pruners/structure_pruning.py 86.14% <0.00%> (-2.25%) ⬇️
mmrazor/models/algorithms/base.py 61.61% <0.00%> (-1.13%) ⬇️
... and 8 more

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 608d951...befbf7d. Read the comment docs.

norm_cfg=norm_cfg,
act_cfg=act_cfg)
if self.with_se:
self.se = SELayer(**se_cfg)
Copy link
Collaborator

Choose a reason for hiding this comment

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

self.se = SELayer(self.mid_channels, **se_cfg)

@pppppM pppppM changed the title [WIP] Mobilenet V2 Search Space [FEATURE] Mobilenet V2 Search Space Mar 7, 2022
@pppppM pppppM added enhancement New feature or request and removed WIP labels Mar 7, 2022
@pppppM pppppM changed the base branch from GreedyNAS to master March 7, 2022 14:48
@pppppM pppppM changed the title [FEATURE] Mobilenet V2 Search Space [FEATURE] Mobilenet Series Search Space Mar 7, 2022
@pppppM pppppM merged commit ef1637e into open-mmlab:master Mar 7, 2022
pppppM added a commit to pppppM/mmrazor that referenced this pull request Jul 15, 2022
* add mbv2 block and identity

* add mbv2 block and identity unittests

* expand_factor -> expand_ratio

* add searchable mobilenet v2

* fix lints

* add spos subnet retraining config

* fix mmcls slurm search

* add proxyless_gpu setting for mbv2

* use bn default

* add angelnas spos config

* update spos readme

* fix SELayer's useage

* add docstring

* rename mbv2 to mb

* add some unittest of mb

* rename mb to mobilenet

* add some rename-mb in configs

* update README of spos

* add rename-mb in unittest

* update test_mmcls

Co-authored-by: wutongshenqiu <690364065@qq.com>
Co-authored-by: humu789 <humu@pjlab.org.cn>
pppppM added a commit to pppppM/mmrazor that referenced this pull request Jul 15, 2022
* add mbv2 block and identity

* add mbv2 block and identity unittests

* expand_factor -> expand_ratio

* add searchable mobilenet v2

* fix lints

* add spos subnet retraining config

* fix mmcls slurm search

* add proxyless_gpu setting for mbv2

* use bn default

* add angelnas spos config

* update spos readme

* fix SELayer's useage

* add docstring

* rename mbv2 to mb

* add some unittest of mb

* rename mb to mobilenet

* add some rename-mb in configs

* update README of spos

* add rename-mb in unittest

* update test_mmcls

Co-authored-by: wutongshenqiu <690364065@qq.com>
Co-authored-by: humu789 <humu@pjlab.org.cn>
humu789 pushed a commit to humu789/mmrazor that referenced this pull request Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants