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

@@ -11,7 +11,7 @@ from supervisely.app.singleton import Singleton
11
11
  from supervisely.app.widgets_context import JinjaWidgets
12
12
 
13
13
  # https://github.com/supervisely/js-bundle
14
- js_bundle_version = "2.1.94"
14
+ js_bundle_version = "2.1.96"
15
15
 
16
16
  # https://github.com/supervisely-ecosystem/supervisely-app-frontend-js
17
17
  js_frontend_version = "v0.0.50"
@@ -192,9 +192,10 @@ class ImageConverter(BaseConverter):
192
192
  mimetypes.add_type("image/heif", ".heif") # to extend types_map
193
193
  mimetypes.add_type("image/jpeg", ".jfif") # to extend types_map
194
194
  mimetypes.add_type("image/avif", ".avif") # to extend types_map
195
+ mimetypes.add_type("image/bmp", ".bmp") # to extend types_map
195
196
 
196
- mime = magic.Magic(mime=True)
197
- mimetype = mime.from_file(path)
197
+ with open(path, "rb") as f:
198
+ mimetype = magic.from_buffer(f.read(), mime=True)
198
199
  file_ext = mimetypes.guess_extension(mimetype)
199
200
  if file_ext is None:
200
201
  return False
@@ -4,6 +4,7 @@ from supervisely.nn.artifacts.mmclassification import MMClassification
4
4
  from supervisely.nn.artifacts.mmdetection import MMDetection, MMDetection3
5
5
  from supervisely.nn.artifacts.mmsegmentation import MMSegmentation
6
6
  from supervisely.nn.artifacts.ritm import RITM
7
+ from supervisely.nn.artifacts.rtdetr import RTDETR
7
8
  from supervisely.nn.artifacts.unet import UNet
8
9
  from supervisely.nn.artifacts.yolov5 import YOLOv5, YOLOv5v2
9
10
  from supervisely.nn.artifacts.yolov8 import YOLOv8
@@ -0,0 +1,32 @@
1
+ from os.path import join
2
+ from re import compile as re_compile
3
+
4
+ from supervisely.nn.artifacts.artifacts import BaseTrainArtifacts
5
+
6
+
7
+ class RTDETR(BaseTrainArtifacts):
8
+ def __init__(self, team_id: int):
9
+ super().__init__(team_id)
10
+
11
+ self._app_name = "Train RT-DETR"
12
+ self._framework_folder = "/RT-DETR"
13
+ self._weights_folder = "weights"
14
+ self._task_type = "object detection"
15
+ self._weights_ext = ".pth"
16
+ self._config_file = "config.yml"
17
+ self._pattern = re_compile(r"^/RT-DETR/[^/]+/\d+/?$")
18
+
19
+ def get_task_id(self, artifacts_folder: str) -> str:
20
+ return artifacts_folder.split("/")[-1]
21
+
22
+ def get_project_name(self, artifacts_folder: str) -> str:
23
+ return artifacts_folder.split("/")[-2]
24
+
25
+ def get_task_type(self, artifacts_folder: str) -> str:
26
+ return self._task_type
27
+
28
+ def get_weights_path(self, artifacts_folder: str) -> str:
29
+ return join(artifacts_folder, self._weights_folder)
30
+
31
+ def get_config_path(self, artifacts_folder: str) -> str:
32
+ return join(artifacts_folder, self._config_file)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: supervisely
3
- Version: 6.73.215
3
+ Version: 6.73.217
4
4
  Summary: Supervisely Python SDK.
5
5
  Home-page: https://github.com/supervisely/supervisely
6
6
  Author: Supervisely
@@ -94,7 +94,7 @@ supervisely/app/fastapi/no_html_main.html,sha256=NhQP7noyORBx72lFh1CQKgBRupkWjiq
94
94
  supervisely/app/fastapi/offline.py,sha256=CwMMkJ1frD6wiZS-SEoNDtQ1UJcJe1Ob6ohE3r4CQL8,7414
95
95
  supervisely/app/fastapi/request.py,sha256=NU7rKmxJ1pfkDZ7_yHckRcRAueJRQIqCor11UO2OHr8,766
96
96
  supervisely/app/fastapi/subapp.py,sha256=uZNRG-mX8tPdN-adVAWgv4wKr-4D3uqqMJWKikCSQtU,42706
97
- supervisely/app/fastapi/templating.py,sha256=1_nkoA95zG7R8Z37bKfHn6fJpAYGg6YuCESX6p0-DTw,2330
97
+ supervisely/app/fastapi/templating.py,sha256=3JO4WmQKfPMmb8xhSuV5knWCen3gTgfdqWpIx4RSJlg,2330
98
98
  supervisely/app/fastapi/utils.py,sha256=GZuTWLcVRGVx8TL3jVEYUOZIT2FawbwIe2kAOBLw9ho,398
99
99
  supervisely/app/fastapi/websocket.py,sha256=TlRSPOAhRItTv1HGvdukK1ZvhRjMUxRa-lJlsRR9rJw,1308
100
100
  supervisely/app/v1/__init__.py,sha256=iWJ_hlzURXkeC6eUy07qLESeY5JcpmHuH9wUafLow9o,842
@@ -557,7 +557,7 @@ supervisely/convert/__init__.py,sha256=gRTV93OYJPI3FNfy78HO2SfR59qQ3FFKFSy_jw1ad
557
557
  supervisely/convert/base_converter.py,sha256=F5oCwQZ_w7XlIIQnW-y-2scvA9sC8vCJL2XMP3DtPZg,14343
558
558
  supervisely/convert/converter.py,sha256=0F93xZmyprua63C6KxIeh0AbaFab81LiWqlkOVrkaYU,8672
559
559
  supervisely/convert/image/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
560
- supervisely/convert/image/image_converter.py,sha256=Er-QX6qyVO4p72iJ3ae0YMF9gSfm_SUimoH6id0MIIs,9446
560
+ supervisely/convert/image/image_converter.py,sha256=6GC8-erDTIJnjkcDvaxs8VAItBNsJrMHaZtOcOsphew,9537
561
561
  supervisely/convert/image/image_helper.py,sha256=RkBAyxxXmDG1Z5WFuO9kBDK8MN1Kl7Z25DX9-CwZ7OI,3647
562
562
  supervisely/convert/image/cityscapes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
563
563
  supervisely/convert/image/cityscapes/cityscapes_converter.py,sha256=msmsR2W-Xiod06dwn-MzmkbrEmQQqlKh7zyfTrW6YQw,7854
@@ -709,7 +709,7 @@ supervisely/nn/__init__.py,sha256=3TVBx23BSDsfY8iaoqBCprzL1oV_Sjcnu5rifbMl1OM,39
709
709
  supervisely/nn/prediction_dto.py,sha256=8QQE6h_feOf3bjWtyG_PoU8FIQrr4g8PoMOyoscmqJM,1697
710
710
  supervisely/nn/task_type.py,sha256=UJvSJ4L3I08j_e6sU6Ptu7kS5p1H09rfhfoDUSZ2iys,522
711
711
  supervisely/nn/utils.py,sha256=diMo6P1FDRChLTmuxRryGvxyMenyRfUqcSi38wjQBOo,1314
712
- supervisely/nn/artifacts/__init__.py,sha256=OzK9u3qIO3oNaIoGQqgCRKWahHZ0Havs48OnYYAOccQ,525
712
+ supervisely/nn/artifacts/__init__.py,sha256=m7KYTMzEJnoV9wcU_0xzgLuPz69Dqp9va0fP32tohV4,576
713
713
  supervisely/nn/artifacts/artifacts.py,sha256=vlZiJp_dqUnfqNcQ8uniZKSUBdU-rjQpKkZzfTKR3fg,16963
714
714
  supervisely/nn/artifacts/detectron2.py,sha256=Wq3ew7IEOEOfXGw8wnHjqBbJSb5kx8QfxjFCpi1x1sQ,1531
715
715
  supervisely/nn/artifacts/hrda.py,sha256=BG8n9rX87DWk4Jbh_9aNOpv3FW98XQNEw27KwAeUtOQ,972
@@ -717,6 +717,7 @@ supervisely/nn/artifacts/mmclassification.py,sha256=9FTopnilHbB46VMVWgS2wN6Iuq7t
717
717
  supervisely/nn/artifacts/mmdetection.py,sha256=vv2i0YD1s1YwUcDzDQLOTkHBU1ThdYOAgWXoAR85fnY,4517
718
718
  supervisely/nn/artifacts/mmsegmentation.py,sha256=Rj79-FEikKe6qwORfkFxWtUL8Oo8ufVrLiefzlWrCYA,1185
719
719
  supervisely/nn/artifacts/ritm.py,sha256=jAJ8EFEvJ_AIjUqhfZqdkZsX0wv0MshVmYWWqOkZ4a8,1841
720
+ supervisely/nn/artifacts/rtdetr.py,sha256=xjH3TzbHHqC06vOb_bVHTSNsWsKPwRDLN39ivQa3sGA,1095
720
721
  supervisely/nn/artifacts/unet.py,sha256=Gn8ADfwC4F-MABVDPRY7g_ZaAIaaOAEbhhIGII-oiA4,1450
721
722
  supervisely/nn/artifacts/yolov5.py,sha256=6KDCyDlLO7AT9of1qHjCaG5mmxCv6C0p-zCk9KJ0PH4,1478
722
723
  supervisely/nn/artifacts/yolov8.py,sha256=c3MzbOTYD6RT5N4F9oZ0SWXxyonjJ6ZQfZLYUHPRZg4,1204
@@ -996,9 +997,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
996
997
  supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
997
998
  supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
998
999
  supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
999
- supervisely-6.73.215.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1000
- supervisely-6.73.215.dist-info/METADATA,sha256=bCrDGEs4hu6O5Xaphgt6QKsu-8142eXUowpx0xn_joQ,33090
1001
- supervisely-6.73.215.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
1002
- supervisely-6.73.215.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1003
- supervisely-6.73.215.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1004
- supervisely-6.73.215.dist-info/RECORD,,
1000
+ supervisely-6.73.217.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
1001
+ supervisely-6.73.217.dist-info/METADATA,sha256=J-MzogOhMEtif7Ihw4DFhpeMKhRlY18L34Djs1DCE80,33090
1002
+ supervisely-6.73.217.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
1003
+ supervisely-6.73.217.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
1004
+ supervisely-6.73.217.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
1005
+ supervisely-6.73.217.dist-info/RECORD,,