Skip to content

Commit 6e534c6

Browse files
compare shape instead of annotation for appending labels
1 parent 9e916f1 commit 6e534c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ote_sdk/ote_sdk/entities/dataset_item.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def append_labels(self, labels: List[ScoredLabel]):
401401

402402
roi_annotation = None
403403
for annotation in self.annotation_scene.annotations:
404-
if annotation == self.roi:
404+
if annotation.shape == self.roi.shape:
405405
roi_annotation = annotation
406406
break
407407

0 commit comments

Comments
 (0)