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

refactor: uniform all model names and correct many other text errors; #701

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Conversation

XixinYang
Copy link
Collaborator

@XixinYang XixinYang commented Jul 6, 2023

Thank you for your contribution to the MindCV repo.
Before submitting this PR, please make sure:

Motivation

统一库上模型名称

①模型名:configs目录下的子文件夹名(configs/*)与mindcv/models目录下的模型文件名(mindcv/models/*.py)保持一致;
②模型规格名:

  • mindcv/models/*.py:__all__内模型名称、default_cfgs.keys()中的模型名称、@register_model处模型函数名
  • configs/*/*.yaml:文件内model参数处模型名称

以上模型名称保持一致(以ckpt文件名为准);

其它修改

①修改过程中遇到的关联文件,如inference.md,readme.md等;
②configs/*/*.md的文章标题与论文中模型正式名称保持一致;
③benchmark_results.md;
④其他文本错误(如:GoogLENet ->GoogLeNet 等等);

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

configs/bit/README.md Outdated Show resolved Hide resolved
configs/convnextv2/README.md Outdated Show resolved Hide resolved
configs/shufflenetv2/README.md Outdated Show resolved Hide resolved
@@ -19,7 +19,7 @@ interpolation: "bilinear"
crop_pct: 0.875

# model
model: "shufflenet_v1_g3_x0_5"
model: "shufflenet_v1_g3_05"
Copy link
Collaborator

Choose a reason for hiding this comment

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

改为050会不会更好一点

configs/swintransformerv2/README.md Outdated Show resolved Hide resolved
configs/visformer/README.md Outdated Show resolved Hide resolved
configs/bit/BiT_resnet101_ascend.yaml Outdated Show resolved Hide resolved
configs/bit/README.md Outdated Show resolved Hide resolved
@@ -28,7 +28,7 @@ crop_pct: 0.935
ema: True

# model
model: 'crossvit15'
Copy link
Collaborator

Choose a reason for hiding this comment

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

为什么有的数字前有下划线,有的之前没有

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

跟ckpt的命名统一,有的ckpt文件名在之前修改的时候就没有加下划线

| densenet_201 | D910x8-G | 78.14 | 94.08 | 20.24 | [yaml](https://github.com/mindspore-lab/mindcv/blob/main/configs/densenet/densenet_201_ascend.yaml) | [weights](https://download.mindspore.cn/toolkits/mindcv/densenet/densenet201-120_5004_Ascend.ckpt) |
| Model | Context | Top-1 (%) | Top-5 (%) | Params (M) | Recipe | Download |
|-------------|----------|-----------|-----------|------------|----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| densenet121 | D910x8-G | 75.64 | 92.84 | 8.06 | [yaml](https://github.com/mindspore-lab/mindcv/blob/main/configs/densenet/densenet121_ascend.yaml) | [weights](https://download.mindspore.cn/toolkits/mindcv/densenet/densenet121-120_5004_Ascend.ckpt) |
Copy link
Collaborator

Choose a reason for hiding this comment

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

这里又把下划线去掉了?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

跟ckpt对齐

configs/mnasnet/README.md Outdated Show resolved Hide resolved
configs/rexnet/rexnet_09_ascend.yaml Outdated Show resolved Hide resolved
'RepMLPNet_L256',
'RepMLPNet_T224',
'RepMLPNet_T256',
['BiT_resnet50',
Copy link
Collaborator

Choose a reason for hiding this comment

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

bit小写?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

为了跟ckpt模型名对齐,没有改成小写

mindcv/models/convnext.py Outdated Show resolved Hide resolved
mindcv/models/swintransformerv2.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@geniuspatrick geniuspatrick left a comment

Choose a reason for hiding this comment

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

LGTM

@XixinYang XixinYang merged commit 85450da into mindspore-lab:main Jul 13, 2023
5 checks passed
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