supervisely 6.73.251__py3-none-any.whl → 6.73.252__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.
Potentially problematic release.
This version of supervisely might be problematic. Click here for more details.
- supervisely/api/dataset_api.py +17 -1
- supervisely/api/project_api.py +4 -1
- supervisely/api/volume/volume_annotation_api.py +7 -4
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/METADATA +1 -1
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/RECORD +9 -9
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/LICENSE +0 -0
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/WHEEL +0 -0
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.251.dist-info → supervisely-6.73.252.dist-info}/top_level.txt +0 -0
supervisely/api/dataset_api.py
CHANGED
|
@@ -263,6 +263,21 @@ class DatasetApi(UpdateableModule, RemoveableModuleApi):
|
|
|
263
263
|
raise KeyError(f"Dataset with id={id} not found in your account")
|
|
264
264
|
return info
|
|
265
265
|
|
|
266
|
+
def _get_effective_new_name(
|
|
267
|
+
self, project_id: int, name: str, change_name_if_conflict: bool, parent_id: int = None
|
|
268
|
+
):
|
|
269
|
+
return (
|
|
270
|
+
self._get_free_name(
|
|
271
|
+
exist_check_fn=lambda name: self.get_info_by_name(
|
|
272
|
+
project_id, name, parent_id=parent_id
|
|
273
|
+
)
|
|
274
|
+
is not None,
|
|
275
|
+
name=name,
|
|
276
|
+
)
|
|
277
|
+
if change_name_if_conflict
|
|
278
|
+
else name
|
|
279
|
+
)
|
|
280
|
+
|
|
266
281
|
def create(
|
|
267
282
|
self,
|
|
268
283
|
project_id: int,
|
|
@@ -306,9 +321,10 @@ class DatasetApi(UpdateableModule, RemoveableModuleApi):
|
|
|
306
321
|
print(len(new_ds_info)) # 2
|
|
307
322
|
"""
|
|
308
323
|
effective_name = self._get_effective_new_name(
|
|
309
|
-
|
|
324
|
+
project_id=project_id,
|
|
310
325
|
name=name,
|
|
311
326
|
change_name_if_conflict=change_name_if_conflict,
|
|
327
|
+
parent_id=parent_id,
|
|
312
328
|
)
|
|
313
329
|
response = self._api.post(
|
|
314
330
|
"datasets.add",
|
supervisely/api/project_api.py
CHANGED
|
@@ -95,6 +95,7 @@ class ProjectInfo(NamedTuple):
|
|
|
95
95
|
settings: dict
|
|
96
96
|
import_settings: dict
|
|
97
97
|
version: dict
|
|
98
|
+
created_by_id: int
|
|
98
99
|
|
|
99
100
|
@property
|
|
100
101
|
def image_preview_url(self):
|
|
@@ -169,6 +170,7 @@ class ProjectApi(CloneableModuleApi, UpdateableModule, RemoveableModuleApi):
|
|
|
169
170
|
backup_archive={},
|
|
170
171
|
team_id=2,
|
|
171
172
|
import_settings={}
|
|
173
|
+
version={'id': 260, 'version': 3}
|
|
172
174
|
)
|
|
173
175
|
"""
|
|
174
176
|
return [
|
|
@@ -191,6 +193,7 @@ class ProjectApi(CloneableModuleApi, UpdateableModule, RemoveableModuleApi):
|
|
|
191
193
|
ApiField.SETTINGS,
|
|
192
194
|
ApiField.IMPORT_SETTINGS,
|
|
193
195
|
ApiField.VERSION,
|
|
196
|
+
ApiField.CREATED_BY_ID,
|
|
194
197
|
]
|
|
195
198
|
|
|
196
199
|
@staticmethod
|
|
@@ -427,7 +430,7 @@ class ProjectApi(CloneableModuleApi, UpdateableModule, RemoveableModuleApi):
|
|
|
427
430
|
"""
|
|
428
431
|
|
|
429
432
|
fields = [
|
|
430
|
-
x for x in self.info_sequence() if x not in (ApiField.ITEMS_COUNT, ApiField.SETTINGS)
|
|
433
|
+
x for x in self.info_sequence() if x not in (ApiField.ITEMS_COUNT, ApiField.SETTINGS, ApiField.CREATED_BY_ID)
|
|
431
434
|
]
|
|
432
435
|
|
|
433
436
|
info = super().get_info_by_name(parent_id, name, fields)
|
|
@@ -128,7 +128,9 @@ class VolumeAnnotationAPI(EntityAnnotationAPI):
|
|
|
128
128
|
volume_info = self._api.volume.get_info_by_id(volume_id)
|
|
129
129
|
return self._download(volume_info.dataset_id, volume_id)
|
|
130
130
|
|
|
131
|
-
def append(
|
|
131
|
+
def append(
|
|
132
|
+
self, volume_id: int, ann: VolumeAnnotation, key_id_map: KeyIdMap = None, volume_info=None
|
|
133
|
+
):
|
|
132
134
|
"""
|
|
133
135
|
Loads VolumeAnnotation to a given volume ID in the API.
|
|
134
136
|
|
|
@@ -159,13 +161,14 @@ class VolumeAnnotationAPI(EntityAnnotationAPI):
|
|
|
159
161
|
else:
|
|
160
162
|
figures = ann.figures
|
|
161
163
|
|
|
162
|
-
|
|
164
|
+
if volume_info is None:
|
|
165
|
+
volume_info = self._api.volume.get_info_by_id(volume_id)
|
|
163
166
|
self._append(
|
|
164
167
|
self._api.volume.tag,
|
|
165
168
|
self._api.volume.object,
|
|
166
169
|
self._api.volume.figure,
|
|
167
|
-
|
|
168
|
-
|
|
170
|
+
volume_info.project_id,
|
|
171
|
+
volume_info.dataset_id,
|
|
169
172
|
volume_id,
|
|
170
173
|
ann.tags,
|
|
171
174
|
ann.objects,
|
|
@@ -24,7 +24,7 @@ supervisely/api/agent_api.py,sha256=ShWAIlXcWXcyI9fqVuP5GZVCigCMJmjnvdGUfLspD6Y,
|
|
|
24
24
|
supervisely/api/annotation_api.py,sha256=kB9l0NhQEkunGDC9fWjNzf5DdhqRF1tv-RRnIbkV2k0,64941
|
|
25
25
|
supervisely/api/api.py,sha256=A4EY7MtLWw4a29Wd63SjQs2CkS3KAiYkVLyuuZn1LdM,65371
|
|
26
26
|
supervisely/api/app_api.py,sha256=-T4sISQ7POyR2yirf1kEWj4JaJFpJxCyRWqbf_99Jak,67036
|
|
27
|
-
supervisely/api/dataset_api.py,sha256=
|
|
27
|
+
supervisely/api/dataset_api.py,sha256=eovT6l62jgjlRyCZ6IvoudUBfDxv9Hjj3Ap8IuCLd7I,41290
|
|
28
28
|
supervisely/api/file_api.py,sha256=c4iIzH2BF8-GLFLk_wc9Qz225AbHhbzH22wv5HdsGg4,83128
|
|
29
29
|
supervisely/api/github_api.py,sha256=NIexNjEer9H5rf5sw2LEZd7C1WR-tK4t6IZzsgeAAwQ,623
|
|
30
30
|
supervisely/api/image_annotation_tool_api.py,sha256=YcUo78jRDBJYvIjrd-Y6FJAasLta54nnxhyaGyanovA,5237
|
|
@@ -36,7 +36,7 @@ supervisely/api/module_api.py,sha256=ajVPU5bH1sB-l2PwWq_xtFxSmZIBikflousOxiAYmW4
|
|
|
36
36
|
supervisely/api/neural_network_api.py,sha256=ktPVRO4Jeulougio8F0mioJJHwRJcX250Djp1wBoQ9c,7620
|
|
37
37
|
supervisely/api/object_class_api.py,sha256=-rQcKwhBw3iL9KNH9c1ROgoimgWM1ls6Wi_tb1R-MzY,7683
|
|
38
38
|
supervisely/api/plugin_api.py,sha256=TlfrosdRuYG4NUxk92QiQoVaOdztFspPpygyVa3M3zk,5283
|
|
39
|
-
supervisely/api/project_api.py,sha256=
|
|
39
|
+
supervisely/api/project_api.py,sha256=ZTRx7LXsPLjMuGq_PhugPgN-OsGMtTRxputH9EA9iZ0,78774
|
|
40
40
|
supervisely/api/project_class_api.py,sha256=5cyjdGPPb2tpttu5WmYoOxUNiDxqiojschkhZumF0KM,1426
|
|
41
41
|
supervisely/api/remote_storage_api.py,sha256=xy9-j5hSftVcAILyqF_mQdQ1DUywt9msq2QYuSE-PVY,15032
|
|
42
42
|
supervisely/api/report_api.py,sha256=Om7CGulUbQ4BuJ16eDtz7luLe0JQNqab-LoLpUXu7YE,7123
|
|
@@ -70,7 +70,7 @@ supervisely/api/video/video_frame_api.py,sha256=4GwSI4xdCNYEUvTqzKc-Ewd44fw5zqkF
|
|
|
70
70
|
supervisely/api/video/video_object_api.py,sha256=IC0NP8EoIT_d3xxDRgz2cA3ixSiuJ5ymy64eS-RfmDM,2227
|
|
71
71
|
supervisely/api/video/video_tag_api.py,sha256=oJgdJt_0w-5UfXaxZ7jdxK0PetZjax1vOfjm0IMYwe8,12266
|
|
72
72
|
supervisely/api/volume/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
|
-
supervisely/api/volume/volume_annotation_api.py,sha256=
|
|
73
|
+
supervisely/api/volume/volume_annotation_api.py,sha256=dPtZSXIz-5us1roG8d4WMt8VU67DWhD6lbBmZv49hy8,18279
|
|
74
74
|
supervisely/api/volume/volume_api.py,sha256=-n3r5qj4I4EtoERKTHFT8PpsKFJ141SvQfamIcHqWK4,55387
|
|
75
75
|
supervisely/api/volume/volume_figure_api.py,sha256=WwmcMw7o3Nvyv52tzmz64yF-WJI0qzAU-zL2JlD7_w0,26039
|
|
76
76
|
supervisely/api/volume/volume_object_api.py,sha256=F7pLV2MTlBlyN6fEKdxBSUatIMGWSuu8bWj3Hvcageo,2139
|
|
@@ -1041,9 +1041,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1041
1041
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1042
1042
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1043
1043
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1044
|
-
supervisely-6.73.
|
|
1045
|
-
supervisely-6.73.
|
|
1046
|
-
supervisely-6.73.
|
|
1047
|
-
supervisely-6.73.
|
|
1048
|
-
supervisely-6.73.
|
|
1049
|
-
supervisely-6.73.
|
|
1044
|
+
supervisely-6.73.252.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1045
|
+
supervisely-6.73.252.dist-info/METADATA,sha256=N7Oy7O6uK-847rvygnHmjeRp1b3J2hSDkDDXSYm7adI,33573
|
|
1046
|
+
supervisely-6.73.252.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
1047
|
+
supervisely-6.73.252.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1048
|
+
supervisely-6.73.252.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1049
|
+
supervisely-6.73.252.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|