Skip to content

Commit

Permalink
CodeCamp open-mmlab#144 [Doc] Chinese version of config tutorial open…
Browse files Browse the repository at this point in the history
…-mmlab#2371

* [Doc]Translate the 1_config.md and modify a wrong statement in 1_config.md

* Translate the 1_config.md and modify a wrong statement in 1_config.md

* Modify some expressions

* Apply suggestions from code review
  • Loading branch information
pofengdenihong authored and MeowZheng committed Dec 30, 2022
1 parent f63ccf0 commit f47e2fd
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 259 deletions.
4 changes: 2 additions & 2 deletions docs/en/user_guides/1_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -575,14 +575,14 @@ Config (path: demo_config.py): {'backbone': {'type': 'ResNetV1c', 'depth': 101,
In addition, if the original type is tuple, it will be automatically converted to list after this way.

```shell
python demo_script.py demo_config.py --cfg-options backbone.strides="(1, 1, 1, 1)"
python demo_script.py demo_config.py --cfg-options backbone.strides=1,1,1,1
```

```shell
Config (path: demo_config.py): {'backbone': {'type': 'ResNetV1c', 'depth': 50, 'num_stages': 4, 'out_indices': (0, 1, 2, 3), 'dilations': (1, 1, 2, 4), 'strides': [1, 1, 1, 1], 'norm_eval': False, 'style': 'pytorch', 'contract_dilation': True}}
```

```{note}
This modification of only supports modifying configuration items of string, int, float, boolean, None, list and tuple types.
This modification method only supports modifying configuration items of string, int, float, boolean, None, list and tuple types.
More specifically, for list and tuple types, the elements inside them must also be one of the above seven types.
```
Loading

0 comments on commit f47e2fd

Please sign in to comment.