supervisely 6.73.256__py3-none-any.whl → 6.73.257__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/api.py +7 -4
- supervisely/project/pointcloud_episode_project.py +14 -3
- supervisely/project/pointcloud_project.py +7 -0
- supervisely/project/project.py +6 -1
- supervisely/project/volume_project.py +9 -0
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/METADATA +1 -1
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/RECORD +11 -11
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/LICENSE +0 -0
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/WHEEL +0 -0
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.256.dist-info → supervisely-6.73.257.dist-info}/top_level.txt +0 -0
supervisely/api/api.py
CHANGED
|
@@ -1631,11 +1631,14 @@ class Api:
|
|
|
1631
1631
|
else:
|
|
1632
1632
|
self._check_https_redirect()
|
|
1633
1633
|
if self.server_address.startswith("https://"):
|
|
1634
|
-
|
|
1635
|
-
|
|
1634
|
+
size = 10
|
|
1635
|
+
if "app.supervise" in self.server_address:
|
|
1636
|
+
size = 7
|
|
1637
|
+
logger.debug(f"Setting global API semaphore size to {size} for HTTPS")
|
|
1636
1638
|
else:
|
|
1637
|
-
|
|
1638
|
-
logger.debug("Setting global API semaphore size to
|
|
1639
|
+
size = 5
|
|
1640
|
+
logger.debug(f"Setting global API semaphore size to {size} for HTTP")
|
|
1641
|
+
self._semaphore = asyncio.Semaphore(size)
|
|
1639
1642
|
|
|
1640
1643
|
def set_semaphore_size(self, size: int = None):
|
|
1641
1644
|
"""
|
|
@@ -31,6 +31,9 @@ from supervisely.video_annotation.frame import Frame
|
|
|
31
31
|
from supervisely.video_annotation.key_id_map import KeyIdMap
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
KITTI_ITEM_DIR_NAME = "velodyne"
|
|
35
|
+
|
|
36
|
+
|
|
34
37
|
class EpisodeItemPaths(NamedTuple):
|
|
35
38
|
#: :class:`str`: Full pointcloud file path of item
|
|
36
39
|
pointcloud_path: str
|
|
@@ -153,9 +156,10 @@ class PointcloudEpisodeDataset(PointcloudDataset):
|
|
|
153
156
|
|
|
154
157
|
def _read(self):
|
|
155
158
|
if not dir_exists(self.item_dir):
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
+
message = f"Cannot read dataset '{self.name}': '{self.item_dir}' directory not found"
|
|
160
|
+
if dir_exists(os.path.join(self.directory, KITTI_ITEM_DIR_NAME)):
|
|
161
|
+
message = f"Cannot read dataset '{self.name}'. The item directory '{KITTI_ITEM_DIR_NAME}' was found. This appears to be a KITTI dataset and will be skipped."
|
|
162
|
+
raise NotADirectoryError(message)
|
|
159
163
|
|
|
160
164
|
try:
|
|
161
165
|
item_paths = sorted(list_files(self.item_dir, filter_fn=self._has_valid_ext))
|
|
@@ -504,6 +508,7 @@ class PointcloudEpisodeProject(PointcloudProject):
|
|
|
504
508
|
batch_size: Optional[int] = 10,
|
|
505
509
|
log_progress: bool = True,
|
|
506
510
|
progress_cb: Optional[Union[tqdm, Callable]] = None,
|
|
511
|
+
**kwargs,
|
|
507
512
|
) -> None:
|
|
508
513
|
"""
|
|
509
514
|
Download pointcloud episodes project from Supervisely to the given directory.
|
|
@@ -626,6 +631,12 @@ class PointcloudEpisodeProject(PointcloudProject):
|
|
|
626
631
|
progress_cb=progress_cb,
|
|
627
632
|
)
|
|
628
633
|
|
|
634
|
+
@staticmethod
|
|
635
|
+
async def download_async(*args, **kwargs):
|
|
636
|
+
raise NotImplementedError(
|
|
637
|
+
f"Static method 'download_async()' is not supported for PointcloudEpisodeProject class now."
|
|
638
|
+
)
|
|
639
|
+
|
|
629
640
|
|
|
630
641
|
def download_pointcloud_episode_project(
|
|
631
642
|
api: Api,
|
|
@@ -737,6 +737,7 @@ class PointcloudProject(VideoProject):
|
|
|
737
737
|
batch_size: Optional[int] = 10,
|
|
738
738
|
log_progress: bool = True,
|
|
739
739
|
progress_cb: Optional[Union[tqdm, Callable]] = None,
|
|
740
|
+
**kwargs,
|
|
740
741
|
) -> PointcloudProject:
|
|
741
742
|
"""
|
|
742
743
|
Download pointcloud project from Supervisely to the given directory.
|
|
@@ -858,6 +859,12 @@ class PointcloudProject(VideoProject):
|
|
|
858
859
|
progress_cb=progress_cb,
|
|
859
860
|
)
|
|
860
861
|
|
|
862
|
+
@staticmethod
|
|
863
|
+
async def download_async(*args, **kwargs):
|
|
864
|
+
raise NotImplementedError(
|
|
865
|
+
f"Static method 'download_async()' is not supported for PointcloudProject class now."
|
|
866
|
+
)
|
|
867
|
+
|
|
861
868
|
|
|
862
869
|
def download_pointcloud_project(
|
|
863
870
|
api: Api,
|
supervisely/project/project.py
CHANGED
|
@@ -2091,7 +2091,12 @@ class Project:
|
|
|
2091
2091
|
OpenMode.READ,
|
|
2092
2092
|
parents=parents,
|
|
2093
2093
|
)
|
|
2094
|
-
|
|
2094
|
+
if current_dataset.name not in self._datasets._collection:
|
|
2095
|
+
self._datasets = self._datasets.add(current_dataset)
|
|
2096
|
+
else:
|
|
2097
|
+
logger.debug(
|
|
2098
|
+
f"Dataset '{current_dataset.name}' already exists in project '{self.name}'. Skip adding to collection."
|
|
2099
|
+
)
|
|
2095
2100
|
except Exception as ex:
|
|
2096
2101
|
logger.warning(ex)
|
|
2097
2102
|
|
|
@@ -33,7 +33,9 @@ VolumeItemPaths = namedtuple("VolumeItemPaths", ["volume_path", "ann_path"])
|
|
|
33
33
|
class VolumeDataset(VideoDataset):
|
|
34
34
|
item_dir_name = "volume"
|
|
35
35
|
interpolation_dir = "interpolation"
|
|
36
|
+
interpolation_dir_name = interpolation_dir
|
|
36
37
|
mask_dir = "mask"
|
|
38
|
+
mask_dir_name = mask_dir
|
|
37
39
|
annotation_class = VolumeAnnotation
|
|
38
40
|
item_module = sly_volume
|
|
39
41
|
paths_tuple = VolumeItemPaths
|
|
@@ -147,6 +149,7 @@ class VolumeProject(VideoProject):
|
|
|
147
149
|
download_volumes: Optional[bool] = True,
|
|
148
150
|
log_progress: bool = False,
|
|
149
151
|
progress_cb: Optional[Union[tqdm, Callable]] = None,
|
|
152
|
+
**kwargs,
|
|
150
153
|
) -> None:
|
|
151
154
|
"""
|
|
152
155
|
Download volume project from Supervisely to the given directory.
|
|
@@ -297,6 +300,12 @@ class VolumeProject(VideoProject):
|
|
|
297
300
|
f"Static method 'get_train_val_splits_by_tag()' is not supported for VolumeProject class now."
|
|
298
301
|
)
|
|
299
302
|
|
|
303
|
+
@staticmethod
|
|
304
|
+
async def download_async(*args, **kwargs):
|
|
305
|
+
raise NotImplementedError(
|
|
306
|
+
f"Static method 'download_async()' is not supported for VolumeProject class now."
|
|
307
|
+
)
|
|
308
|
+
|
|
300
309
|
|
|
301
310
|
def download_volume_project(
|
|
302
311
|
api: Api,
|
|
@@ -22,7 +22,7 @@ supervisely/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
22
22
|
supervisely/api/advanced_api.py,sha256=Nd5cCnHFWc3PSUrCtENxTGtDjS37_lCHXsgXvUI3Ti8,2054
|
|
23
23
|
supervisely/api/agent_api.py,sha256=ShWAIlXcWXcyI9fqVuP5GZVCigCMJmjnvdGUfLspD6Y,8890
|
|
24
24
|
supervisely/api/annotation_api.py,sha256=kB9l0NhQEkunGDC9fWjNzf5DdhqRF1tv-RRnIbkV2k0,64941
|
|
25
|
-
supervisely/api/api.py,sha256=
|
|
25
|
+
supervisely/api/api.py,sha256=0dgPx_eizoCEFzfT8YH9uh1kq-OJwjrV5fBGD7uZ7E4,65840
|
|
26
26
|
supervisely/api/app_api.py,sha256=-T4sISQ7POyR2yirf1kEWj4JaJFpJxCyRWqbf_99Jak,67036
|
|
27
27
|
supervisely/api/dataset_api.py,sha256=eovT6l62jgjlRyCZ6IvoudUBfDxv9Hjj3Ap8IuCLd7I,41290
|
|
28
28
|
supervisely/api/file_api.py,sha256=7yWt8lRQ4UfLmnMZ9T18UXzu8jihrtHtcqi6GZJG-0w,83414
|
|
@@ -990,16 +990,16 @@ supervisely/pointcloud_episodes/pointcloud_episodes.py,sha256=cRXdtw7bMsbsdVQjxf
|
|
|
990
990
|
supervisely/project/__init__.py,sha256=hlzdj9Pgy53Q3qdP8LMtGTChvZHQuuShdtui2eRUQeE,2601
|
|
991
991
|
supervisely/project/data_version.py,sha256=nknaWJSUCwoDyNG9_d1KA-GjzidhV9zd9Cn8cg15DOU,19270
|
|
992
992
|
supervisely/project/download.py,sha256=zb8sb4XZ6Qi3CP7fmtLRUAYzaxs_W0WnOfe2x3ZVRMs,24639
|
|
993
|
-
supervisely/project/pointcloud_episode_project.py,sha256=
|
|
994
|
-
supervisely/project/pointcloud_project.py,sha256=
|
|
995
|
-
supervisely/project/project.py,sha256=
|
|
993
|
+
supervisely/project/pointcloud_episode_project.py,sha256=yiWdNBQiI6f1O9sr1pg8JHW6O-w3XUB1rikJNn3Oung,41866
|
|
994
|
+
supervisely/project/pointcloud_project.py,sha256=Kx1Vaes-krwG3BiRRtHRLQxb9G5m5bTHPN9IzRqmNWo,49399
|
|
995
|
+
supervisely/project/project.py,sha256=bC6qY1M93pa7kzxOxOuSbCTkzIKXfiKO-ecJrbAX_Ag,188673
|
|
996
996
|
supervisely/project/project_meta.py,sha256=26s8IiHC5Pg8B1AQi6_CrsWteioJP2in00cRNe8QlW0,51423
|
|
997
997
|
supervisely/project/project_settings.py,sha256=NLThzU_DCynOK6hkHhVdFyezwprn9UqlnrLDe_3qhkY,9347
|
|
998
998
|
supervisely/project/project_type.py,sha256=_3RqW2CnDBKFOvSIrQT1RJQaiHirs34_jiQS8CkwCpo,530
|
|
999
999
|
supervisely/project/readme_template.md,sha256=rGmSLRVUSGjvorjpzl0sZ7YA4sKfDexl95NFtMISj3I,9128
|
|
1000
1000
|
supervisely/project/upload.py,sha256=AjgHYgVZwUE25ygC5pqvFjdAladbyB8T78mlet5Qpho,3750
|
|
1001
1001
|
supervisely/project/video_project.py,sha256=8fJeicVWNMbek24PmNRBtbnFhvXsnxPg5dpNrL5VNW4,63739
|
|
1002
|
-
supervisely/project/volume_project.py,sha256=
|
|
1002
|
+
supervisely/project/volume_project.py,sha256=Kn9VEvWuKKZvL2nx6B6bjSvHuoZhAOxEc6DvPRexUco,22666
|
|
1003
1003
|
supervisely/pyscripts_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1004
1004
|
supervisely/pyscripts_utils/utils.py,sha256=scEwHJvHRQa8NHIOn2eTwH6-Zc8CGdLoxM-WzH9jcRo,314
|
|
1005
1005
|
supervisely/report/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -1054,9 +1054,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1054
1054
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1055
1055
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1056
1056
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1057
|
-
supervisely-6.73.
|
|
1058
|
-
supervisely-6.73.
|
|
1059
|
-
supervisely-6.73.
|
|
1060
|
-
supervisely-6.73.
|
|
1061
|
-
supervisely-6.73.
|
|
1062
|
-
supervisely-6.73.
|
|
1057
|
+
supervisely-6.73.257.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1058
|
+
supervisely-6.73.257.dist-info/METADATA,sha256=UyU-S9TnzIcLlXhsvyoWuEMUDL031uxLtqyG_IJvLBs,33573
|
|
1059
|
+
supervisely-6.73.257.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
1060
|
+
supervisely-6.73.257.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1061
|
+
supervisely-6.73.257.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1062
|
+
supervisely-6.73.257.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|