diff --git a/ote_sdk/ote_sdk/entities/dataset_item.py b/ote_sdk/ote_sdk/entities/dataset_item.py index f18d1f22476..a37b48c9dfe 100644 --- a/ote_sdk/ote_sdk/entities/dataset_item.py +++ b/ote_sdk/ote_sdk/entities/dataset_item.py @@ -401,7 +401,7 @@ def append_labels(self, labels: List[ScoredLabel]): roi_annotation = None for annotation in self.annotation_scene.annotations: - if annotation == self.roi: + if annotation.shape == self.roi.shape: roi_annotation = annotation break