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

[Tools] Add vit/swin/mit convert weight scripts #783

Merged
merged 16 commits into from
Aug 18, 2021

Conversation

xiexinch
Copy link
Collaborator

Motivation

Remove convert keys operation at init_weight function, use script instead.

@xiexinch xiexinch requested a review from MengzhangLI August 12, 2021 12:45
@codecov
Copy link

codecov bot commented Aug 12, 2021

Codecov Report

Merging #783 (37822c5) into master (6eff941) will not change coverage.
The diff coverage is n/a.

❗ Current head 37822c5 differs from pull request most recent head 9d73900. Consider uploading reports for the commit 9d73900 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #783   +/-   ##
=======================================
  Coverage   86.09%   86.09%           
=======================================
  Files         108      108           
  Lines        5860     5860           
  Branches      953      953           
=======================================
  Hits         5045     5045           
  Misses        630      630           
  Partials      185      185           
Flag Coverage Δ
unittests 86.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 6eff941...9d73900. Read the comment docs.

@Junjun2016
Copy link
Collaborator

The description or docstring is too short.

@Junjun2016
Copy link
Collaborator

@xiexinch
Copy link
Collaborator Author

The description or docstring is too short.

What information should be included?

@Junjun2016
Copy link
Collaborator

The description or docstring is too short.

What information should be included?

Describe what the script does, such as

RegNet model to MMDetection

tools/model_converters/regnet2mmdet.py convert keys in pycls pretrained RegNet models to MMDetection style.
https://github.com/open-mmlab/mmdetection/blob/master/docs/useful_tools.md#regnet-model-to-mmdetection

Please update the Chinese document at the same time.

docs/useful_tools.md Outdated Show resolved Hide resolved
docs/useful_tools.md Outdated Show resolved Hide resolved
docs/useful_tools.md Outdated Show resolved Hide resolved
docs/useful_tools.md Outdated Show resolved Hide resolved
docs/useful_tools.md Outdated Show resolved Hide resolved
docs_zh-CN/useful_tools.md Outdated Show resolved Hide resolved
@xvjiarui
Copy link
Collaborator

We may delete convert function from ViT/Swin backbones in a new PR.
And we may add instruction on how to convert model in their README.md.

(It seems that Segformer's readme.md should be renamed as README.md, and model-index is also missing).

@@ -277,6 +277,14 @@ We provide scripts to convert pretrain models provided by other repos to MMSegme
python tools/model_converters/swin2mmseg.py ${SRC} ${DST}
```

- Segformer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- Segformer
- SegFormer

@MengzhangLI MengzhangLI self-requested a review August 16, 2021 05:51
@xvjiarui xvjiarui merged commit f72727c into open-mmlab:master Aug 18, 2021
459737087 pushed a commit to 459737087/mmsegmentation that referenced this pull request Aug 23, 2021
* init scripts

* update markdown

* update markdown

* add docs

* delete mit converter and use torch load function

* rename segformer readme

* update doc

* modify doc

* 更新中文文档

* Update useful_tools.md

* Update useful_tools.md

* modify doc

* update segformer.yml
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
* init scripts

* update markdown

* update markdown

* add docs

* delete mit converter and use torch load function

* rename segformer readme

* update doc

* modify doc

* 更新中文文档

* Update useful_tools.md

* Update useful_tools.md

* modify doc

* update segformer.yml
wjkim81 pushed a commit to wjkim81/mmsegmentation that referenced this pull request Dec 3, 2023
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.

4 participants