From 285d2d04091661ec293f7e4fa953635d23622182 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinin Date: Tue, 14 Dec 2021 14:52:03 +0300 Subject: [PATCH] Fixed label colors --- cvat/apps/dataset_manager/bindings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat/apps/dataset_manager/bindings.py b/cvat/apps/dataset_manager/bindings.py index 087abe6d8d9c..64dc1bb55f85 100644 --- a/cvat/apps/dataset_manager/bindings.py +++ b/cvat/apps/dataset_manager/bindings.py @@ -1518,7 +1518,7 @@ def import_labels_to_project(project_annotation, dataset: Dataset): color=get_label_color(label.name, label_colors) ) labels.append(db_label) - label_colors.append(label.color) + label_colors.append(db_label.color) project_annotation.add_labels(labels) def load_dataset_data(project_annotation, dataset: Dataset, project_data):