Skip to content

Commit

Permalink
compare shape instead of annotation for appending labels
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertvanHouten committed May 12, 2022
1 parent 9e916f1 commit 6e534c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ote_sdk/ote_sdk/entities/dataset_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6e534c6

Please sign in to comment.