Skip to content

Commit b5859c9

Browse files
authored
skip validation of labels with is_background attribute set to true (#1444)
1 parent efff0db commit b5859c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactive_ai/libs/iai_core_py/iai_core/utils/project_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def edit_existing_project( # noqa: C901, PLR0912, PLR0915
976976
updated_labels.append(project_label)
977977
# Make the LabelGroup and child->parent mapping with the new list of labels
978978
for label in updated_labels:
979-
if label.is_empty:
979+
if label.is_empty or label.is_background:
980980
continue
981981
label_group = parser.get_label_group_by_name(
982982
task_name=task_name,

0 commit comments

Comments
 (0)