supervisely 6.73.305__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.
- supervisely/convert/pointcloud_episodes/nuscenes_conv/nuscenes_converter.py +13 -9
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/METADATA +1 -1
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/RECORD +7 -7
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/LICENSE +0 -0
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/WHEEL +0 -0
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.305.dist-info → supervisely-6.73.306.dist-info}/top_level.txt +0 -0
|
@@ -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
|
|
64
|
-
return all(
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
71
|
-
if
|
|
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
|
-
|
|
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
|
|
|
@@ -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=
|
|
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.
|
|
1078
|
-
supervisely-6.73.
|
|
1079
|
-
supervisely-6.73.
|
|
1080
|
-
supervisely-6.73.
|
|
1081
|
-
supervisely-6.73.
|
|
1082
|
-
supervisely-6.73.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|