-
Notifications
You must be signed in to change notification settings - Fork 50
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
Conversation
tutorials/configuration_CN.md
Outdated
- is_parallel: 是否分布式训练,默认为False | ||
- ms_mode: 使用静态图模式(0)或动态图模式(1),默认为0。 | ||
- config: yaml配置文件路径 | ||
- per_batch_size: 单卡batch size,默认为32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
单卡 -> 每张卡
tutorials/configuration_CN.md
Outdated
- ...... | ||
|
||
### yaml文件样例 | ||
该部分参数在[configs/yolov3/hyp.scratch.yaml](../configs/yolov3/hyp.scratch.yaml)中定义,其中train_transformers和test_transformers均为由字典组成的列表,各字典内部为各数据增强的相关参数 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
各字典内部为各数据增强的相关参数
->
字典包含,数据增强操作名称、发生概率及该增强方法相关的参数
tutorials/configuration_CN.md
Outdated
## 参数继承关系 | ||
|
||
参数优先级由高到低如下,出现同名参数时,低优先级参数会被高优先级参数覆盖 | ||
|
||
- 用户命令行传入参数 | ||
- python执行py文件中parser的默认参数 | ||
- 命令行传入config参数对应的yaml文件参数 | ||
- 命令行传入config参数对应的yaml文件中__BASE__参数中包含的yaml文件参数,例如yolov3.yaml含有如下参数: | ||
```yaml | ||
__BASE__: [ | ||
'../coco.yaml', | ||
'./hyp.scratch.yaml', | ||
] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参数继承关系可以放到上面说
- backbone: 模型骨干网络 | ||
- head: 模型检测头 |
There was a problem hiding this comment.
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提前定义和注册相应网络;
tutorials/configuration_CN.md
Outdated
- num_parallel_workers: 读取数据的工作进程数 | ||
- train_transformers: 训练过程数据增强 | ||
- test_transformers: 验证过程数据增强 | ||
- ...... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...... -> ...
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)