Source code for mmseg.datasets.gta_dataset
from .builder import DATASETS
from .custom import CustomDataset
[docs]@DATASETS.register_module()
class GTADataset(CustomDataset):
"""Height dataset.
In segmentation map annotation for ADE20K, 0 stands for background, which
is not included in 150 categories. ``reduce_zero_label`` is fixed to True.
The ``img_suffix`` is fixed to '.jpg' and ``seg_map_suffix`` is fixed to
'.png'.
"""
def __init__(self, **kwargs):
super(GTADataset, self).__init__(
img_suffix='.jpg',
seg_map_suffix='.png',
reduce_zero_label=False,
**kwargs)