Source code for mmseg.datasets.height
from .builder import DATASETS
from .custom import CustomDataset
[docs]@DATASETS.register_module()
class HeightDataset(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(HeightDataset, self).__init__(
img_suffix='.tif',
seg_map_suffix='.tif',
reduce_zero_label=False,
**kwargs)