supervisely 6.73.365__py3-none-any.whl → 6.73.366__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.
- supervisely/api/image_api.py +9 -5
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/METADATA +1 -1
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/RECORD +7 -7
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/LICENSE +0 -0
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/WHEEL +0 -0
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.365.dist-info → supervisely-6.73.366.dist-info}/top_level.txt +0 -0
supervisely/api/image_api.py
CHANGED
|
@@ -874,6 +874,7 @@ class ImageApi(RemoveableBulkModuleApi):
|
|
|
874
874
|
ids: List[int],
|
|
875
875
|
progress_cb: Optional[Union[tqdm, Callable]] = None,
|
|
876
876
|
force_metadata_for_links=True,
|
|
877
|
+
fields: Optional[List[str]] = None,
|
|
877
878
|
) -> List[ImageInfo]:
|
|
878
879
|
"""
|
|
879
880
|
Get Images information by ID.
|
|
@@ -912,13 +913,16 @@ class ImageApi(RemoveableBulkModuleApi):
|
|
|
912
913
|
dataset_id = image_info.dataset_id
|
|
913
914
|
for batch in batched(ids):
|
|
914
915
|
filters = [{"field": ApiField.ID, "operator": "in", "value": batch}]
|
|
916
|
+
data = {
|
|
917
|
+
ApiField.DATASET_ID: dataset_id,
|
|
918
|
+
ApiField.FILTER: filters,
|
|
919
|
+
ApiField.FORCE_METADATA_FOR_LINKS: force_metadata_for_links,
|
|
920
|
+
}
|
|
921
|
+
if fields is not None:
|
|
922
|
+
data[ApiField.FIELDS] = fields
|
|
915
923
|
temp_results = self.get_list_all_pages(
|
|
916
924
|
"images.list",
|
|
917
|
-
|
|
918
|
-
ApiField.DATASET_ID: dataset_id,
|
|
919
|
-
ApiField.FILTER: filters,
|
|
920
|
-
ApiField.FORCE_METADATA_FOR_LINKS: force_metadata_for_links,
|
|
921
|
-
},
|
|
925
|
+
data,
|
|
922
926
|
)
|
|
923
927
|
results.extend(temp_results)
|
|
924
928
|
if progress_cb is not None and len(temp_results) > 0:
|
|
@@ -30,7 +30,7 @@ supervisely/api/entities_collection_api.py,sha256=lIF10PVgdUOEjcG7dJuxgpN30cnmxw
|
|
|
30
30
|
supervisely/api/file_api.py,sha256=EX_Cam93QkR5SOOIkIznkzERIr0u7N7GHVGK27iOm20,92952
|
|
31
31
|
supervisely/api/github_api.py,sha256=NIexNjEer9H5rf5sw2LEZd7C1WR-tK4t6IZzsgeAAwQ,623
|
|
32
32
|
supervisely/api/image_annotation_tool_api.py,sha256=YcUo78jRDBJYvIjrd-Y6FJAasLta54nnxhyaGyanovA,5237
|
|
33
|
-
supervisely/api/image_api.py,sha256=
|
|
33
|
+
supervisely/api/image_api.py,sha256=XeIhj_-PKO-78DcnbwLDRb68zR84oeA18ZmAUk536Zg,224565
|
|
34
34
|
supervisely/api/import_storage_api.py,sha256=BDCgmR0Hv6OoiRHLCVPKt3iDxSVlQp1WrnKhAK_Zl84,460
|
|
35
35
|
supervisely/api/issues_api.py,sha256=BqDJXmNoTzwc3xe6_-mA7FDFC5QQ-ahGbXk_HmpkSeQ,17925
|
|
36
36
|
supervisely/api/labeling_job_api.py,sha256=5xorizIYJlyBi-XtPiMyFz-COKR0V_KR5zVhd1kutSM,55187
|
|
@@ -1097,9 +1097,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1097
1097
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1098
1098
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1099
1099
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1100
|
-
supervisely-6.73.
|
|
1101
|
-
supervisely-6.73.
|
|
1102
|
-
supervisely-6.73.
|
|
1103
|
-
supervisely-6.73.
|
|
1104
|
-
supervisely-6.73.
|
|
1105
|
-
supervisely-6.73.
|
|
1100
|
+
supervisely-6.73.366.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1101
|
+
supervisely-6.73.366.dist-info/METADATA,sha256=D0oFVWgu9m_evVu6gv36pV16j2PwflyxVF5AeAXjVnc,35151
|
|
1102
|
+
supervisely-6.73.366.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1103
|
+
supervisely-6.73.366.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1104
|
+
supervisely-6.73.366.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1105
|
+
supervisely-6.73.366.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|