Skip to content
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

[Fix] Typo in MMSegmentation_Tutorial.ipynb #1366

Merged
merged 1 commit into from
Mar 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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