supervisely 6.73.328__py3-none-any.whl → 6.73.329__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/nn/inference/cache.py +6 -3
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/METADATA +1 -1
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/RECORD +7 -7
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/LICENSE +0 -0
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/WHEEL +0 -0
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.328.dist-info → supervisely-6.73.329.dist-info}/top_level.txt +0 -0
|
@@ -65,7 +65,7 @@ class PersistentImageTTLCache(TTLCache):
|
|
|
65
65
|
def __init__(self, maxsize: int, ttl: int, filepath: Path):
|
|
66
66
|
super().__init__(maxsize, ttl)
|
|
67
67
|
self._base_dir = filepath
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
def pop(self, *args, **kwargs):
|
|
70
70
|
try:
|
|
71
71
|
super().pop(*args, **kwargs)
|
|
@@ -157,7 +157,8 @@ class PersistentImageTTLCache(TTLCache):
|
|
|
157
157
|
return sly.image.read(str(self[key]))
|
|
158
158
|
|
|
159
159
|
def save_video(self, video_id: int, src_video_path: str) -> None:
|
|
160
|
-
|
|
160
|
+
ext = Path(src_video_path).suffix
|
|
161
|
+
video_path = self._base_dir / f"video_{video_id}{ext}"
|
|
161
162
|
self[video_id] = video_path
|
|
162
163
|
if src_video_path != str(video_path):
|
|
163
164
|
shutil.move(src_video_path, str(video_path))
|
|
@@ -707,7 +708,9 @@ class InferenceImageCache:
|
|
|
707
708
|
return f"frame_{video_id}_{frame_index}"
|
|
708
709
|
|
|
709
710
|
def _video_name(self, video_id: int, video_name: str) -> str:
|
|
710
|
-
|
|
711
|
+
ext = Path(video_name).suffix
|
|
712
|
+
name = f"video_{video_id}{ext}"
|
|
713
|
+
return name
|
|
711
714
|
|
|
712
715
|
def _project_meta_name(self, project_id: int) -> str:
|
|
713
716
|
return f"project_meta_{project_id}"
|
|
@@ -882,7 +882,7 @@ supervisely/nn/benchmark/visualization/widgets/sidebar/sidebar.py,sha256=tKPURRS
|
|
|
882
882
|
supervisely/nn/benchmark/visualization/widgets/table/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
883
883
|
supervisely/nn/benchmark/visualization/widgets/table/table.py,sha256=atmDnF1Af6qLQBUjLhK18RMDKAYlxnsuVHMSEa5a-e8,4319
|
|
884
884
|
supervisely/nn/inference/__init__.py,sha256=QFukX2ip-U7263aEPCF_UCFwj6EujbMnsgrXp5Bbt8I,1623
|
|
885
|
-
supervisely/nn/inference/cache.py,sha256=
|
|
885
|
+
supervisely/nn/inference/cache.py,sha256=LAirR5mFHCtK59EO1lefQ2qhpp0vBvRTH26EVrs13Y0,32073
|
|
886
886
|
supervisely/nn/inference/inference.py,sha256=O0GR2o0t9hDh-bMdiKrxk-hxdmQU1M-44aIcZM89Qo8,166222
|
|
887
887
|
supervisely/nn/inference/session.py,sha256=jmkkxbe2kH-lEgUU6Afh62jP68dxfhF5v6OGDfLU62E,35757
|
|
888
888
|
supervisely/nn/inference/video_inference.py,sha256=8Bshjr6rDyLay5Za8IB8Dr6FURMO2R_v7aELasO8pR4,5746
|
|
@@ -1082,9 +1082,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1082
1082
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1083
1083
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1084
1084
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1085
|
-
supervisely-6.73.
|
|
1086
|
-
supervisely-6.73.
|
|
1087
|
-
supervisely-6.73.
|
|
1088
|
-
supervisely-6.73.
|
|
1089
|
-
supervisely-6.73.
|
|
1090
|
-
supervisely-6.73.
|
|
1085
|
+
supervisely-6.73.329.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1086
|
+
supervisely-6.73.329.dist-info/METADATA,sha256=G1AJOfCxXxOhcuYnmqYJyXal2CD6lg4rGZBa4CG2NMo,33596
|
|
1087
|
+
supervisely-6.73.329.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1088
|
+
supervisely-6.73.329.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1089
|
+
supervisely-6.73.329.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1090
|
+
supervisely-6.73.329.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|