Skip to content

Commit 579f5f8

Browse files
authored
Fix palette type. (open-mmlab#27)
1 parent 1bedfe3 commit 579f5f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mmseg/models/segmentors/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ def show_result(self,
242242
0, 255, size=(len(self.CLASSES), 3))
243243
else:
244244
palette = self.PALETTE
245-
else:
246-
palette = np.array(palette)
245+
palette = np.array(palette)
247246
assert palette.shape[0] == len(self.CLASSES)
248247
assert palette.shape[1] == 3
249248
assert len(palette.shape) == 2

0 commit comments

Comments
 (0)