supervisely 6.73.426__py3-none-any.whl → 6.73.427__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -865,7 +865,7 @@ class AnnotationApi(ModuleApi):
865
865
  return
866
866
  if len(img_ids) != len(anns):
867
867
  raise RuntimeError(
868
- 'Can not match "img_ids" and "anns" lists, len(img_ids) != len(anns)'
868
+ f'Lists "img_ids" and "anns" have different lengths: {len(img_ids)} != {len(anns)}.'
869
869
  )
870
870
 
871
871
  # use context to avoid redundant API calls
@@ -94,13 +94,16 @@ def _frame_to_annotation(frame: Frame, video_annotation: VideoAnnotation) -> Ann
94
94
 
95
95
  def _upload_annotations(api: Api, image_ids, frame_indices, video_annotation: VideoAnnotation):
96
96
  anns = []
97
- for image_id, frame_index in zip(image_ids, frame_indices):
97
+ for frame_index in frame_indices:
98
98
  frame = video_annotation.frames.get(frame_index, None)
99
99
  if frame is not None:
100
100
  anns.append(_frame_to_annotation(frame, video_annotation))
101
+ else:
102
+ anns.append(Annotation(video_annotation.img_size))
101
103
  api.annotation.upload_anns(image_ids, anns=anns)
102
104
 
103
105
 
106
+
104
107
  def _upload_frames(
105
108
  api: Api,
106
109
  frames: List[np.ndarray],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.426
3
+ Version: 6.73.427
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -22,7 +22,7 @@ supervisely/annotation/tag_meta_mapper.py,sha256=RWeTrxJ64syodyhXIRSH007bX6Hr3B4
22
22
  supervisely/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  supervisely/api/advanced_api.py,sha256=Nd5cCnHFWc3PSUrCtENxTGtDjS37_lCHXsgXvUI3Ti8,2054
24
24
  supervisely/api/agent_api.py,sha256=8EQBwD6v7KLS0-xKcZ12B7mtzKwG7RRgq1fk1vaN144,8893
25
- supervisely/api/annotation_api.py,sha256=U6dHUIOt6Fe8XcbX1MA19z-fg91maOumJAawKG5ZJsk,82876
25
+ supervisely/api/annotation_api.py,sha256=JdcCKuy_7PvtNcHsRhi4ANhn3aynLY44rtbqau2Y9A4,82891
26
26
  supervisely/api/api.py,sha256=gRItQzO6Xj7k_pJIpVUS2dV1vkTTHV25_1Uia6xxZSc,67930
27
27
  supervisely/api/app_api.py,sha256=Q6XxLxp3D_Vc3PIVyBmP7wJtTLbgYCPNOLND5UvJhMw,79010
28
28
  supervisely/api/constants.py,sha256=WfqIcEpRnU4Mcfb6q0njeRs2VVSoTAJaIyrqBkBjP8I,253
@@ -1082,7 +1082,7 @@ supervisely/user/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
1082
1082
  supervisely/user/user.py,sha256=4GSVIupPAxWjIxZmUtH3Dtms_vGV82-49kM_aaR2gBI,319
1083
1083
  supervisely/video/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1084
1084
  supervisely/video/import_utils.py,sha256=b1Nl0gscNsV0iB9nWPeqt8GrkhOeuTZsN1p-d3gDUmE,544
1085
- supervisely/video/sampling.py,sha256=jTtXAZrq_hkxFQSSdwFp-lYUKX8HZf1nO-4trzMCQis,20197
1085
+ supervisely/video/sampling.py,sha256=6w-FjpWbEq_u7zonnPEo0MhXN7RofhdgSZd27h45YMQ,20249
1086
1086
  supervisely/video/video.py,sha256=QGV1R3qNOJ0zgsfItqv-e7mbEnWqFpE3rcJwt7izC28,20206
1087
1087
  supervisely/video_annotation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1088
1088
  supervisely/video_annotation/constants.py,sha256=_gW9iMhVk1w_dUaFiaiyXn66mt13S6bkxC64xpjP-CU,529
@@ -1121,9 +1121,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1121
1121
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1122
1122
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1123
1123
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1124
- supervisely-6.73.426.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1125
- supervisely-6.73.426.dist-info/METADATA,sha256=n8l1EDWAUS40PA5PAItiv2whk9oGDSPg3IkrqWk0shc,35433
1126
- supervisely-6.73.426.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1127
- supervisely-6.73.426.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1128
- supervisely-6.73.426.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1129
- supervisely-6.73.426.dist-info/RECORD,,
1124
+ supervisely-6.73.427.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1125
+ supervisely-6.73.427.dist-info/METADATA,sha256=8GWIKJx9OORuou4fT66QXiasJmRPeH3QMNjeV-e8jJ0,35433
1126
+ supervisely-6.73.427.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
1127
+ supervisely-6.73.427.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1128
+ supervisely-6.73.427.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1129
+ supervisely-6.73.427.dist-info/RECORD,,