1
0
mirror of https://github.com/open-mmlab/mmsegmentation.git synced 2025-06-03 22:03:48 +08:00

[Fix] Fix wrong palette value in vaihingen ()

This commit is contained in:
MengzhangLI 2022-02-16 22:41:39 +08:00 committed by GitHub
parent 304df56c78
commit 1abf76decf
2 changed files with 2 additions and 2 deletions
mmseg
core/evaluation
datasets

@ -232,7 +232,7 @@ def potsdam_palette():
def vaihingen_palette(): def vaihingen_palette():
"""Vaihingen palette for external use.""" """Vaihingen palette for external use."""
return [[255, 255, 255], [0, 0, 255], [0, 0, 255], [0, 255, 0], return [[255, 255, 255], [0, 0, 255], [0, 255, 255], [0, 255, 0],
[255, 255, 0], [255, 0, 0]] [255, 255, 0], [255, 0, 0]]

@ -14,7 +14,7 @@ class ISPRSDataset(CustomDataset):
CLASSES = ('impervious_surface', 'building', 'low_vegetation', 'tree', CLASSES = ('impervious_surface', 'building', 'low_vegetation', 'tree',
'car', 'clutter') 'car', 'clutter')
PALETTE = [[255, 255, 255], [0, 0, 255], [0, 0, 255], [0, 255, 0], PALETTE = [[255, 255, 255], [0, 0, 255], [0, 255, 255], [0, 255, 0],
[255, 255, 0], [255, 0, 0]] [255, 255, 0], [255, 0, 0]]
def __init__(self, **kwargs): def __init__(self, **kwargs):