supervisely 6.73.304__py3-none-any.whl → 6.73.306__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.

@@ -1281,7 +1281,6 @@ class TaskApi(ModuleApiBase, ModuleWithStatus):
1281
1281
 
1282
1282
  def deploy_custom_model(
1283
1283
  self,
1284
- team_id: int,
1285
1284
  workspace_id: int,
1286
1285
  artifacts_dir: str,
1287
1286
  checkpoint_name: str = None,
@@ -1,3 +1,4 @@
1
+ import os
1
2
  from os import path as osp
2
3
  from pathlib import Path
3
4
  from typing import Dict, Optional
@@ -60,19 +61,22 @@ class NuscenesEpisodesConverter(PointcloudEpisodeConverter):
60
61
  logger.warning("Please, run 'pip install nuscenes-devkit' to import NuScenes data.")
61
62
  return False
62
63
 
63
- def filter_fn(path):
64
- return all([(Path(path) / name).exists() for name in ["maps", "samples"]])
64
+ def _contains_tables(p):
65
+ return all(fs.file_exists(Path(p) / f"{name}.json") for name in helpers.TABLE_NAMES)
65
66
 
66
- input_path = next((d for d in fs.dirs_filter(self._input_data, filter_fn)), None)
67
- if input_path is None:
68
- return False
67
+ def _filter_fn(path):
68
+ has_tables = False
69
+ for p in os.scandir(path):
70
+ if p.is_dir() and _contains_tables(p.path):
71
+ has_tables = True
72
+ break
73
+ return has_tables and (Path(path) / "samples").exists()
69
74
 
70
- sample_dir = input_path + "/samples/"
71
- if any([not fs.dir_exists(f"{sample_dir}/{d}") for d in helpers.DIR_NAMES]):
75
+ input_path = next((d for d in fs.dirs_filter(self._input_data, _filter_fn)), None)
76
+ if input_path is None:
72
77
  return False
73
78
 
74
- fil_fn = lambda p: all(fs.file_exists(f"{p}/{name}.json") for name in helpers.TABLE_NAMES)
75
- ann_dir = next((d for d in fs.dirs_filter(input_path, fil_fn)), None)
79
+ ann_dir = next((d for d in fs.dirs_filter(input_path, _contains_tables)), None)
76
80
  if ann_dir is None:
77
81
  return False
78
82
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.304
3
+ Version: 6.73.306
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -42,7 +42,7 @@ supervisely/api/remote_storage_api.py,sha256=qTuPhPsstgEjRm1g-ZInddik8BNC_38YvBB
42
42
  supervisely/api/report_api.py,sha256=Om7CGulUbQ4BuJ16eDtz7luLe0JQNqab-LoLpUXu7YE,7123
43
43
  supervisely/api/role_api.py,sha256=aBL4mxtn08LDPXQuS153-lQFN6N2kcwiz8MbescZ8Gk,3044
44
44
  supervisely/api/storage_api.py,sha256=FPGYf3Rn3LBoe38RBNdoiURs306oshzvKOEOQ56XAbs,13030
45
- supervisely/api/task_api.py,sha256=tRhHEvPQQa68nCrENNlgSCruVYDWYLdvvLD-1MGcicw,53632
45
+ supervisely/api/task_api.py,sha256=iaP5v0WrVJFjdmoIuBBk___7kS57fxgmhjByZX7ZSHo,53610
46
46
  supervisely/api/team_api.py,sha256=bEoz3mrykvliLhKnzEy52vzdd_H8VBJCpxF-Bnek9Q8,19467
47
47
  supervisely/api/user_api.py,sha256=4S97yIc6AMTZCa0N57lzETnpIE8CeqClvCb6kjUkgfc,24940
48
48
  supervisely/api/video_annotation_tool_api.py,sha256=3A9-U8WJzrTShP_n9T8U01M9FzGYdeS51CCBTzUnooo,6686
@@ -641,7 +641,7 @@ supervisely/convert/pointcloud_episodes/bag/bag_converter.py,sha256=jzWKXoFUWu11
641
641
  supervisely/convert/pointcloud_episodes/lyft/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
642
642
  supervisely/convert/pointcloud_episodes/lyft/lyft_converter.py,sha256=QXreWUJ-QhoWgLPqRxCayatYCCCuSV6Z2XCZKScrD3o,10419
643
643
  supervisely/convert/pointcloud_episodes/nuscenes_conv/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
644
- supervisely/convert/pointcloud_episodes/nuscenes_conv/nuscenes_converter.py,sha256=4HWouf-H4e5M_Hwd481DpLq17mIZMGkhRVOBgY4alXM,12692
644
+ supervisely/convert/pointcloud_episodes/nuscenes_conv/nuscenes_converter.py,sha256=O8QIwqwb0DUuYmS8oq6kGv3uTlzS3GyGvAxfL1bYW-s,12764
645
645
  supervisely/convert/pointcloud_episodes/nuscenes_conv/nuscenes_helper.py,sha256=cJTwhFn1JgblbPjrTrZu30y6FxyjGF-12sMFfvN1xzM,8969
646
646
  supervisely/convert/pointcloud_episodes/sly/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
647
647
  supervisely/convert/pointcloud_episodes/sly/sly_pointcloud_episodes_converter.py,sha256=fSEGxuTtFTAOLNBAZncOxw9PVALBOtB7yZ8qTCaET7w,6102
@@ -1074,9 +1074,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
1074
1074
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
1075
1075
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
1076
1076
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
1077
- supervisely-6.73.304.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1078
- supervisely-6.73.304.dist-info/METADATA,sha256=5JZrJ5bK3MX8Ao9Aib0L9MaK9HipNOi0gGvq6P568Vc,33573
1079
- supervisely-6.73.304.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1080
- supervisely-6.73.304.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1081
- supervisely-6.73.304.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1082
- supervisely-6.73.304.dist-info/RECORD,,
1077
+ supervisely-6.73.306.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1078
+ supervisely-6.73.306.dist-info/METADATA,sha256=Le_ZxcfBW8-k0qfJMmpxGWDVaMOQPNo9MmmuoOrT0fU,33573
1079
+ supervisely-6.73.306.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
1080
+ supervisely-6.73.306.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1081
+ supervisely-6.73.306.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1082
+ supervisely-6.73.306.dist-info/RECORD,,