# Copyright (c) OpenMMLab. All rights reserved. import os.path as osp import mmengine.fileio as fileio from mmseg.registry import DATASETS from .basesegdataset import BaseSegDataset @DATASETS.register_module() class UVA_dataset(BaseSegDataset): """Pascal VOC dataset. Args: split (str): Split txt file for Pascal VOC. """ METAINFO = dict( classes=('background', 'barren', 'forest', 'farmland', 'water', 'road','building'), PALETTE=[[0, 0, 0], [165, 42, 42], [0, 255, 0], [255, 255, 0], [0, 0, 255], [128, 128, 128],[0,255,255]] ) def __init__(self, img_suffix='.png', seg_map_suffix='.png', **kwargs) -> None: super().__init__( img_suffix=img_suffix, seg_map_suffix=seg_map_suffix, **kwargs)