Skip to content

Commit 2056caa

Browse files
authored
[Fix] Fix wrong palette value in vaihingen (open-mmlab#1292)
1 parent 0e3d1b8 commit 2056caa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mmseg/core/evaluation/class_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def potsdam_palette():
232232

233233
def vaihingen_palette():
234234
"""Vaihingen palette for external use."""
235-
return [[255, 255, 255], [0, 0, 255], [0, 0, 255], [0, 255, 0],
235+
return [[255, 255, 255], [0, 0, 255], [0, 255, 255], [0, 255, 0],
236236
[255, 255, 0], [255, 0, 0]]
237237

238238

mmseg/datasets/isprs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ISPRSDataset(CustomDataset):
1414
CLASSES = ('impervious_surface', 'building', 'low_vegetation', 'tree',
1515
'car', 'clutter')
1616

17-
PALETTE = [[255, 255, 255], [0, 0, 255], [0, 0, 255], [0, 255, 0],
17+
PALETTE = [[255, 255, 255], [0, 0, 255], [0, 255, 255], [0, 255, 0],
1818
[255, 255, 0], [255, 0, 0]]
1919

2020
def __init__(self, **kwargs):

0 commit comments

Comments
 (0)