Skip to content

Commit 4250a5a

Browse files
authored
Update MMSegmentation_Tutorial.ipynb (open-mmlab#1366)
typos
1 parent 2e28db0 commit 4250a5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/MMSegmentation_Tutorial.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369
"id": "HchvmGYB_rrO"
370370
},
371371
"source": [
372-
"After downloading the data, we need to implement `load_annotations` function in the new dataset class `StandfordBackgroundDataset`."
372+
"After downloading the data, we need to implement `load_annotations` function in the new dataset class `StanfordBackgroundDataset`."
373373
]
374374
},
375375
{
@@ -384,7 +384,7 @@
384384
"from mmseg.datasets.custom import CustomDataset\n",
385385
"\n",
386386
"@DATASETS.register_module()\n",
387-
"class StandfordBackgroundDataset(CustomDataset):\n",
387+
"class StanfordBackgroundDataset(CustomDataset):\n",
388388
" CLASSES = classes\n",
389389
" PALETTE = palette\n",
390390
" def __init__(self, split, **kwargs):\n",
@@ -440,7 +440,7 @@
440440
"source": [
441441
"from mmseg.apis import set_random_seed\n",
442442
"\n",
443-
"# Since we use ony one GPU, BN is used instead of SyncBN\n",
443+
"# Since we use only one GPU, BN is used instead of SyncBN\n",
444444
"cfg.norm_cfg = dict(type='BN', requires_grad=True)\n",
445445
"cfg.model.backbone.norm_cfg = cfg.norm_cfg\n",
446446
"cfg.model.decode_head.norm_cfg = cfg.norm_cfg\n",
@@ -450,7 +450,7 @@
450450
"cfg.model.auxiliary_head.num_classes = 8\n",
451451
"\n",
452452
"# Modify dataset type and path\n",
453-
"cfg.dataset_type = 'StandfordBackgroundDataset'\n",
453+
"cfg.dataset_type = 'StanfordBackgroundDataset'\n",
454454
"cfg.data_root = data_root\n",
455455
"\n",
456456
"cfg.data.samples_per_gpu = 8\n",

0 commit comments

Comments
 (0)