Skip to content

Commit ab16753

Browse files
committed
Fix upload_image_annotations log
1 parent f97653f commit ab16753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superannotate/db/images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ def upload_image_annotations(
990990
:param mask: BytesIO object or filepath to mask annotation for pixel projects in SuperAnnotate format
991991
:type mask: BytesIO or Pathlike (str or Path)
992992
"""
993+
project, project_folder = get_project_and_folder_metadata(project)
993994

994995
if isinstance(annotation_json, list):
995996
raise SABaseException(
@@ -1000,7 +1001,6 @@ def upload_image_annotations(
10001001
if verbose:
10011002
logger.info("Uploading annotations from %s.", annotation_json)
10021003
annotation_json = json.load(open(annotation_json))
1003-
project, project_folder = get_project_and_folder_metadata(project)
10041004
image = get_image_metadata((project, project_folder), image_name)
10051005
team_id, project_id, image_id, folder_id, image_name = image[
10061006
"team_id"], image["project_id"], image["id"], image['folder_id'], image[

0 commit comments

Comments
 (0)