Skip to content

add tutorials/configuration.md #141

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

Merged
merged 1 commit into from
Jun 15, 2023
Merged

add tutorials/configuration.md #141

merged 1 commit into from
Jun 15, 2023

Conversation

yuedongli1
Copy link
Collaborator

@yuedongli1 yuedongli1 commented Jun 14, 2023

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

Motivation

(Write your motivation for proposed changes here.)

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)

@yuedongli1 yuedongli1 self-assigned this Jun 14, 2023
@yuedongli1 yuedongli1 added documentation Improvements or additions to documentation inside-test 内部开发者提的issue rfc 需求单issue labels Jun 14, 2023
@yuedongli1 yuedongli1 added this to the mindyolo-0.1 milestone Jun 14, 2023
@yuedongli1 yuedongli1 linked an issue Jun 14, 2023 that may be closed by this pull request
- is_parallel: 是否分布式训练,默认为False
- ms_mode: 使用静态图模式(0)或动态图模式(1),默认为0。
- config: yaml配置文件路径
- per_batch_size: 单卡batch size,默认为32
Copy link
Collaborator

Choose a reason for hiding this comment

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

单卡 -> 每张卡

- ......

### yaml文件样例
该部分参数在[configs/yolov3/hyp.scratch.yaml](../configs/yolov3/hyp.scratch.yaml)中定义,其中train_transformers和test_transformers均为由字典组成的列表,各字典内部为各数据增强的相关参数
Copy link
Collaborator

Choose a reason for hiding this comment

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

各字典内部为各数据增强的相关参数
->
字典包含,数据增强操作名称、发生概率及该增强方法相关的参数

Comment on lines 233 to 246
## 参数继承关系

参数优先级由高到低如下,出现同名参数时,低优先级参数会被高优先级参数覆盖

- 用户命令行传入参数
- python执行py文件中parser的默认参数
- 命令行传入config参数对应的yaml文件参数
- 命令行传入config参数对应的yaml文件中__BASE__参数中包含的yaml文件参数,例如yolov3.yaml含有如下参数:
```yaml
__BASE__: [
'../coco.yaml',
'./hyp.scratch.yaml',
]
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

参数继承关系可以放到上面说

Comment on lines +108 to +124
- backbone: 模型骨干网络
- head: 模型检测头
Copy link
Collaborator

Choose a reason for hiding this comment

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

- ...
- 注意:yolov3会根据backbon和head参数进行网络构建,参数以列表形式呈现,包含4个参数,分别是 输入层编号(-1代表上一层)、层数、模块名称和模块相应参数;用户也可以不通过backbone和head提前定义和注册相应网络;

- num_parallel_workers: 读取数据的工作进程数
- train_transformers: 训练过程数据增强
- test_transformers: 验证过程数据增强
- ......
Copy link
Collaborator

Choose a reason for hiding this comment

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

...... -> ...

@yuedongli1 yuedongli1 requested a review from zhanghuiyao June 15, 2023 07:55
@zhanghuiyao zhanghuiyao merged commit 9f21985 into mindspore-lab:master Jun 15, 2023
@zhanghuiyao zhanghuiyao changed the title add configuration.md add tutorials/configuration.md Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation inside-test 内部开发者提的issue rfc 需求单issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Feature] mindyolo对外文档
3 participants