[Fix] Fix wrong palette value in vaihingen (#1292)

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

View File

@ -232,7 +232,7 @@ def potsdam_palette():
def vaihingen_palette():
"""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]]

View File

@ -14,7 +14,7 @@ class ISPRSDataset(CustomDataset):
CLASSES = ('impervious_surface', 'building', 'low_vegetation', 'tree',
'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]]
def __init__(self, **kwargs):