From 920a8978e9d05eb9418475cbe99bf13d5a662b28 Mon Sep 17 00:00:00 2001 From: JingweiZhang12 Date: Fri, 12 May 2023 10:56:41 +0800 Subject: [PATCH] use tuple palette --- mmdet3d/datasets/s3dis_dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmdet3d/datasets/s3dis_dataset.py b/mmdet3d/datasets/s3dis_dataset.py index 7a41b834b..ed289cab1 100644 --- a/mmdet3d/datasets/s3dis_dataset.py +++ b/mmdet3d/datasets/s3dis_dataset.py @@ -54,8 +54,8 @@ class S3DISDataset(Det3DDataset): 'seg_valid_class_ids': (7, 8, 9, 10, 11), 'seg_all_class_ids': tuple(range(1, 14)), # possibly with 'stair' class - 'palette': [[170, 120, 200], [255, 0, 0], [200, 100, 100], - [10, 200, 100], [200, 200, 200]] + 'palette': [(170, 120, 200), (255, 0, 0), (200, 100, 100), + (10, 200, 100), (200, 200, 200)] } def __init__(self,