From bedec406e1b3e55131c4d100f6cb3517cfa9179a Mon Sep 17 00:00:00 2001 From: Vinson <461158649@qq.com> Date: Tue, 3 Jan 2023 00:19:44 -0500 Subject: [PATCH] Fix the docstring error in the class PascalContextDataset59 (#2450) ## Motivation The docstring in the class PascalContextDataset59 is misleading. Try to fix it. ## Modification The docstring in the class PascalContextDataset59 is changed. --- mmseg/datasets/pascal_context.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mmseg/datasets/pascal_context.py b/mmseg/datasets/pascal_context.py index efacee0f3..20285d8f5 100644 --- a/mmseg/datasets/pascal_context.py +++ b/mmseg/datasets/pascal_context.py @@ -58,10 +58,10 @@ class PascalContextDataset(CustomDataset): class PascalContextDataset59(CustomDataset): """PascalContext dataset. - In segmentation map annotation for PascalContext, 0 stands for background, - which is included in 60 categories. ``reduce_zero_label`` is fixed to - False. The ``img_suffix`` is fixed to '.jpg' and ``seg_map_suffix`` is - fixed to '.png'. + In segmentation map annotation for PascalContext59, background is not + included in 59 categories. ``reduce_zero_label`` is fixed to True. + The ``img_suffix`` is fixed to '.jpg' and ``seg_map_suffix`` is fixed + to '.png'. Args: split (str): Split txt file for PascalContext.