Skip to content

Commit 446ece4

Browse files
committed
Fix pixel copy image annotations bug
1 parent 5523d48 commit 446ece4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

superannotate/db/project_images.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ def _copy_images(
183183
annotations = get_image_annotations(
184184
(source_project, source_project_folder), image_name
185185
)
186-
if annotations["annotation_json"] is not None and annotations[
187-
"annotation_mask"] is not None:
188-
if "annotation_mask" in annotations:
186+
if annotations["annotation_json"] is not None:
187+
if "annotation_mask" in annotations and annotations[
188+
"annotation_mask"] is not None:
189189
upload_image_annotations(
190190
(destination_project, destination_project_folder),
191191
image_name, annotations["annotation_json"],

0 commit comments

Comments
 (0)