Skip to content

Commit

Permalink
[Doc] Update config.md (open-mmlab#1363)
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
andife authored Mar 10, 2022
1 parent 6b05790 commit 98b8ed3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/en/tutorials/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The configs that are composed by components from `_base_` are called _primitive_

For all configs under the same folder, it is recommended to have only **one** _primitive_ config. All other configs should inherit from the _primitive_ config. In this way, the maximum of inheritance level is 3.

For easy understanding, we recommend contributors to inherit from exiting methods.
For easy understanding, we recommend contributors to inherit from existing methods.
For example, if some modification is made base on DeepLabV3, user may first inherit the basic DeepLabV3 structure by specifying `_base_ = ../deeplabv3/deeplabv3_r50_512x1024_40ki_cityscapes.py`, then modify the necessary fields in the config files.

If you are building an entirely new method that does not share the structure with any of the existing methods, you may create a folder `xxxnet` under `configs`,
Expand Down Expand Up @@ -40,7 +40,7 @@ We follow the below style to name config files. Contributors are advised to foll

To help the users have a basic idea of a complete config and the modules in a modern semantic segmentation system,
we make brief comments on the config of PSPNet using ResNet50V1c as the following.
For more detailed usage and the corresponding alternative for each modules, please refer to the API documentation.
For more detailed usage and the corresponding alternative for each module, please refer to the API documentation.

```python
norm_cfg = dict(type='SyncBN', requires_grad=True) # Segmentation usually uses SyncBN
Expand Down Expand Up @@ -256,8 +256,8 @@ evaluation = dict( # The config to build the evaluation hook. Please refer to m

### Ignore some fields in the base configs

Sometimes, you may set `_delete_=True` to ignore some of fields in base configs.
You may refer to [mmcv](https://mmcv.readthedocs.io/en/latest/understand_mmcv/config.html#inherit-from-base-config-with-ignored-fields) for simple inllustration.
Sometimes, you may set `_delete_=True` to ignore some of the fields in base configs.
You may refer to [mmcv](https://mmcv.readthedocs.io/en/latest/understand_mmcv/config.html#inherit-from-base-config-with-ignored-fields) for simple illustration.

In MMSegmentation, for example, to change the backbone of PSPNet with the following config.

Expand Down Expand Up @@ -327,7 +327,7 @@ The `_delete_=True` would replace all old keys in `backbone` field with new keys

Some intermediate variables are used in the configs files, like `train_pipeline`/`test_pipeline` in datasets.
It's worth noting that when modifying intermediate variables in the children configs, user need to pass the intermediate variables into corresponding fields again.
For example, we would like to change multi scale strategy to train/test a PSPNet. `train_pipeline`/`test_pipeline` are intermediate variable we would like modify.
For example, we would like to change multi scale strategy to train/test a PSPNet. `train_pipeline`/`test_pipeline` are intermediate variable we would like to modify.

```python
_base_ = '../pspnet/psp_r50_512x1024_40ki_cityscapes.py'
Expand Down

0 comments on commit 98b8ed3

Please sign in to comment.