Skip to content

Commit

Permalink
Update MMSegmentation_Tutorial.ipynb (open-mmlab#1366)
Browse files Browse the repository at this point in the history
typos
  • Loading branch information
andife authored and mob5566 committed Apr 13, 2022
1 parent ec4bec1 commit 63b414a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/MMSegmentation_Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
"id": "HchvmGYB_rrO"
},
"source": [
"After downloading the data, we need to implement `load_annotations` function in the new dataset class `StandfordBackgroundDataset`."
"After downloading the data, we need to implement `load_annotations` function in the new dataset class `StanfordBackgroundDataset`."
]
},
{
Expand All @@ -384,7 +384,7 @@
"from mmseg.datasets.custom import CustomDataset\n",
"\n",
"@DATASETS.register_module()\n",
"class StandfordBackgroundDataset(CustomDataset):\n",
"class StanfordBackgroundDataset(CustomDataset):\n",
" CLASSES = classes\n",
" PALETTE = palette\n",
" def __init__(self, split, **kwargs):\n",
Expand Down Expand Up @@ -440,7 +440,7 @@
"source": [
"from mmseg.apis import set_random_seed\n",
"\n",
"# Since we use ony one GPU, BN is used instead of SyncBN\n",
"# Since we use only one GPU, BN is used instead of SyncBN\n",
"cfg.norm_cfg = dict(type='BN', requires_grad=True)\n",
"cfg.model.backbone.norm_cfg = cfg.norm_cfg\n",
"cfg.model.decode_head.norm_cfg = cfg.norm_cfg\n",
Expand All @@ -450,7 +450,7 @@
"cfg.model.auxiliary_head.num_classes = 8\n",
"\n",
"# Modify dataset type and path\n",
"cfg.dataset_type = 'StandfordBackgroundDataset'\n",
"cfg.dataset_type = 'StanfordBackgroundDataset'\n",
"cfg.data_root = data_root\n",
"\n",
"cfg.data.samples_per_gpu = 8\n",
Expand Down

0 comments on commit 63b414a

Please sign in to comment.