supervisely 6.73.365__py3-none-any.whl → 6.73.367__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.
Files changed (95) hide show
  1. supervisely/annotation/annotation.py +21 -21
  2. supervisely/annotation/label.py +4 -4
  3. supervisely/annotation/obj_class.py +9 -5
  4. supervisely/annotation/obj_class_collection.py +2 -2
  5. supervisely/annotation/tag.py +2 -2
  6. supervisely/annotation/tag_collection.py +3 -3
  7. supervisely/annotation/tag_meta.py +2 -2
  8. supervisely/annotation/tag_meta_collection.py +2 -2
  9. supervisely/api/agent_api.py +1 -1
  10. supervisely/api/annotation_api.py +1 -1
  11. supervisely/api/dataset_api.py +4 -4
  12. supervisely/api/entities_collection_api.py +1 -1
  13. supervisely/api/file_api.py +10 -10
  14. supervisely/api/image_api.py +18 -14
  15. supervisely/api/labeling_job_api.py +1 -1
  16. supervisely/api/labeling_queue_api.py +1 -1
  17. supervisely/api/module_api.py +6 -6
  18. supervisely/api/object_class_api.py +1 -1
  19. supervisely/api/plugin_api.py +1 -1
  20. supervisely/api/pointcloud/pointcloud_annotation_api.py +1 -1
  21. supervisely/api/pointcloud/pointcloud_api.py +1 -1
  22. supervisely/api/pointcloud/pointcloud_episode_annotation_api.py +1 -1
  23. supervisely/api/pointcloud/pointcloud_episode_api.py +1 -1
  24. supervisely/api/project_api.py +4 -4
  25. supervisely/api/remote_storage_api.py +6 -6
  26. supervisely/api/role_api.py +1 -1
  27. supervisely/api/storage_api.py +3 -3
  28. supervisely/api/task_api.py +1 -1
  29. supervisely/api/team_api.py +1 -1
  30. supervisely/api/user_api.py +1 -1
  31. supervisely/api/video/video_annotation_api.py +1 -1
  32. supervisely/api/video/video_api.py +4 -4
  33. supervisely/api/volume/volume_annotation_api.py +1 -1
  34. supervisely/api/volume/volume_api.py +1 -1
  35. supervisely/api/workspace_api.py +1 -2
  36. supervisely/app/development/sly-net.sh +2 -2
  37. supervisely/app/fastapi/index.html +3 -3
  38. supervisely/app/fastapi/subapp.py +1 -1
  39. supervisely/aug/aug.py +10 -10
  40. supervisely/cli/__init__.py +15 -10
  41. supervisely/geometry/alpha_mask.py +2 -2
  42. supervisely/geometry/bitmap.py +8 -6
  43. supervisely/geometry/bitmap_base.py +63 -24
  44. supervisely/geometry/cuboid.py +97 -50
  45. supervisely/geometry/cuboid_2d.py +2 -2
  46. supervisely/geometry/graph.py +4 -4
  47. supervisely/geometry/mask_3d.py +1 -1
  48. supervisely/geometry/point.py +63 -24
  49. supervisely/geometry/point_location.py +2 -2
  50. supervisely/geometry/polygon.py +2 -2
  51. supervisely/geometry/polyline.py +32 -40
  52. supervisely/geometry/rectangle.py +2 -2
  53. supervisely/geometry/vector_geometry.py +27 -39
  54. supervisely/io/env.py +3 -2
  55. supervisely/labeling_jobs/utils.py +5 -5
  56. supervisely/nn/model/prediction_session.py +2 -2
  57. supervisely/pointcloud/pointcloud.py +2 -2
  58. supervisely/pointcloud_annotation/pointcloud_annotation.py +19 -17
  59. supervisely/pointcloud_annotation/pointcloud_episode_annotation.py +23 -20
  60. supervisely/pointcloud_annotation/pointcloud_episode_frame.py +18 -12
  61. supervisely/pointcloud_annotation/pointcloud_episode_frame_collection.py +9 -6
  62. supervisely/pointcloud_annotation/pointcloud_episode_object_collection.py +7 -3
  63. supervisely/pointcloud_annotation/pointcloud_episode_tag.py +1 -1
  64. supervisely/pointcloud_annotation/pointcloud_episode_tag_collection.py +2 -2
  65. supervisely/pointcloud_annotation/pointcloud_figure.py +1 -1
  66. supervisely/pointcloud_annotation/pointcloud_object_collection.py +11 -10
  67. supervisely/pointcloud_annotation/pointcloud_tag.py +5 -4
  68. supervisely/pointcloud_annotation/pointcloud_tag_collection.py +7 -6
  69. supervisely/pointcloud_episodes/pointcloud_episodes.py +2 -2
  70. supervisely/project/download.py +1 -1
  71. supervisely/project/pointcloud_episode_project.py +1 -2
  72. supervisely/project/pointcloud_project.py +1 -1
  73. supervisely/project/project.py +8 -7
  74. supervisely/project/project_meta.py +2 -2
  75. supervisely/project/readme_template.md +1 -1
  76. supervisely/project/upload.py +1 -1
  77. supervisely/project/video_project.py +1 -1
  78. supervisely/project/volume_project.py +1 -1
  79. supervisely/task/progress.py +1 -1
  80. supervisely/video_annotation/frame.py +2 -2
  81. supervisely/video_annotation/frame_collection.py +3 -3
  82. supervisely/video_annotation/video_annotation.py +7 -5
  83. supervisely/video_annotation/video_figure.py +2 -2
  84. supervisely/video_annotation/video_object.py +47 -28
  85. supervisely/video_annotation/video_object_collection.py +15 -8
  86. supervisely/video_annotation/video_tag.py +2 -2
  87. supervisely/video_annotation/video_tag_collection.py +5 -5
  88. supervisely/volume_annotation/volume_figure.py +2 -2
  89. supervisely/volume_annotation/volume_tag.py +6 -5
  90. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/METADATA +2 -2
  91. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/RECORD +95 -95
  92. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/LICENSE +0 -0
  93. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/WHEEL +0 -0
  94. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/entry_points.txt +0 -0
  95. {supervisely-6.73.365.dist-info → supervisely-6.73.367.dist-info}/top_level.txt +0 -0
@@ -1,28 +1,30 @@
1
1
  # coding: utf-8
2
2
  from __future__ import annotations
3
- from typing import Optional, List, Dict
4
- from supervisely.project.project_meta import ProjectMeta
5
- from copy import deepcopy
6
- import uuid
3
+
7
4
  import json
5
+ import uuid
6
+ from copy import deepcopy
7
+ from typing import Dict, List, Optional
8
8
 
9
9
  from supervisely._utils import take_with_default
10
- from supervisely.pointcloud_annotation.pointcloud_tag_collection import PointcloudTagCollection
11
10
  from supervisely.pointcloud_annotation.constants import (
12
11
  DESCRIPTION,
13
- TAGS,
14
- OBJECTS,
15
- KEY,
16
12
  FIGURES,
13
+ KEY,
14
+ OBJECTS,
17
15
  POINTCLOUD_ID,
16
+ TAGS,
18
17
  )
19
- from supervisely.video_annotation.key_id_map import KeyIdMap
20
-
21
- from supervisely.video_annotation.video_annotation import VideoAnnotation
22
18
  from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
23
19
  from supervisely.pointcloud_annotation.pointcloud_object_collection import (
24
20
  PointcloudObjectCollection,
25
21
  )
22
+ from supervisely.pointcloud_annotation.pointcloud_tag_collection import (
23
+ PointcloudTagCollection,
24
+ )
25
+ from supervisely.project.project_meta import ProjectMeta
26
+ from supervisely.video_annotation.key_id_map import KeyIdMap
27
+ from supervisely.video_annotation.video_annotation import VideoAnnotation
26
28
 
27
29
 
28
30
  class PointcloudAnnotation(VideoAnnotation):
@@ -117,7 +119,7 @@ class PointcloudAnnotation(VideoAnnotation):
117
119
 
118
120
  import supervisely as sly
119
121
 
120
- address = 'https://app.supervise.ly/'
122
+ address = 'https://app.supervisely.com/'
121
123
  token = 'Your Supervisely API Token'
122
124
  api = sly.Api(address, token)
123
125
 
@@ -148,7 +150,7 @@ class PointcloudAnnotation(VideoAnnotation):
148
150
 
149
151
  import supervisely as sly
150
152
 
151
- address = 'https://app.supervise.ly/'
153
+ address = 'https://app.supervisely.com/'
152
154
  token = 'Your Supervisely API Token'
153
155
  api = sly.Api(address, token)
154
156
 
@@ -179,7 +181,7 @@ class PointcloudAnnotation(VideoAnnotation):
179
181
 
180
182
  import supervisely as sly
181
183
 
182
- address = 'https://app.supervise.ly/'
184
+ address = 'https://app.supervisely.com/'
183
185
  token = 'Your Supervisely API Token'
184
186
  api = sly.Api(address, token)
185
187
 
@@ -297,7 +299,7 @@ class PointcloudAnnotation(VideoAnnotation):
297
299
  import supervisely as sly
298
300
  from supervisely.video_annotation.key_id_map import KeyIdMap
299
301
 
300
- address = 'https://app.supervise.ly/'
302
+ address = 'https://app.supervisely.com/'
301
303
  token = 'Your Supervisely API Token'
302
304
  api = sly.Api(address, token)
303
305
 
@@ -354,7 +356,7 @@ class PointcloudAnnotation(VideoAnnotation):
354
356
 
355
357
  import supervisely as sly
356
358
 
357
- address = 'https://app.supervise.ly/'
359
+ address = 'https://app.supervisely.com/'
358
360
  token = 'Your Supervisely API Token'
359
361
  api = sly.Api(address, token)
360
362
 
@@ -405,7 +407,7 @@ class PointcloudAnnotation(VideoAnnotation):
405
407
  import supervisely as sly
406
408
  from supervisely.video_annotation.key_id_map import KeyIdMap
407
409
 
408
- address = 'https://app.supervise.ly/'
410
+ address = 'https://app.supervisely.com/'
409
411
  token = 'Your Supervisely API Token'
410
412
  api = sly.Api(address, token)
411
413
 
@@ -1,31 +1,32 @@
1
1
  # coding: utf-8
2
2
  from __future__ import annotations
3
- import uuid
3
+
4
4
  import json
5
- from typing import Optional, Dict, List
5
+ import uuid
6
+ from typing import Dict, List, Optional
6
7
 
7
- from supervisely.project.project_meta import ProjectMeta
8
8
  from supervisely._utils import take_with_default
9
9
  from supervisely.api.module_api import ApiField
10
+ from supervisely.pointcloud_annotation.pointcloud_episode_frame_collection import (
11
+ PointcloudEpisodeFrameCollection,
12
+ )
10
13
  from supervisely.pointcloud_annotation.pointcloud_episode_object_collection import (
11
14
  PointcloudEpisodeObjectCollection,
12
15
  )
16
+ from supervisely.pointcloud_annotation.pointcloud_episode_tag_collection import (
17
+ PointcloudEpisodeTagCollection,
18
+ )
19
+ from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
20
+ from supervisely.project.project_meta import ProjectMeta
13
21
  from supervisely.video_annotation.constants import (
14
- FRAMES,
15
22
  DESCRIPTION,
23
+ FRAMES,
16
24
  FRAMES_COUNT,
17
- TAGS,
18
- OBJECTS,
19
25
  KEY,
20
- )
21
- from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
22
- from supervisely.pointcloud_annotation.pointcloud_episode_frame_collection import (
23
- PointcloudEpisodeFrameCollection,
26
+ OBJECTS,
27
+ TAGS,
24
28
  )
25
29
  from supervisely.video_annotation.key_id_map import KeyIdMap
26
- from supervisely.pointcloud_annotation.pointcloud_episode_tag_collection import (
27
- PointcloudEpisodeTagCollection,
28
- )
29
30
 
30
31
 
31
32
  class PointcloudEpisodeAnnotation:
@@ -388,7 +389,9 @@ class PointcloudEpisodeAnnotation:
388
389
  tags = PointcloudEpisodeTagCollection.from_json(
389
390
  data[TAGS], project_meta.tag_metas, key_id_map
390
391
  )
391
- objects = PointcloudEpisodeObjectCollection.from_json(data[OBJECTS], project_meta, key_id_map)
392
+ objects = PointcloudEpisodeObjectCollection.from_json(
393
+ data[OBJECTS], project_meta, key_id_map
394
+ )
392
395
  frames = PointcloudEpisodeFrameCollection.from_json(
393
396
  data[FRAMES], objects, key_id_map=key_id_map
394
397
  )
@@ -416,7 +419,7 @@ class PointcloudEpisodeAnnotation:
416
419
 
417
420
  import supervisely as sly
418
421
 
419
- address = 'https://app.supervise.ly/'
422
+ address = 'https://app.supervisely.com/'
420
423
  token = 'Your Supervisely API Token'
421
424
  api = sly.Api(address, token)
422
425
 
@@ -466,7 +469,7 @@ class PointcloudEpisodeAnnotation:
466
469
  import supervisely as sly
467
470
  from supervisely.video_annotation.key_id_map import KeyIdMap
468
471
 
469
- address = 'https://app.supervise.ly/'
472
+ address = 'https://app.supervisely.com/'
470
473
  token = 'Your Supervisely API Token'
471
474
  api = sly.Api(address, token)
472
475
 
@@ -608,7 +611,7 @@ class PointcloudEpisodeAnnotation:
608
611
 
609
612
  import supervisely as sly
610
613
 
611
- address = 'https://app.supervise.ly/'
614
+ address = 'https://app.supervisely.com/'
612
615
  token = 'Your Supervisely API Token'
613
616
  api = sly.Api(address, token)
614
617
 
@@ -689,7 +692,7 @@ class PointcloudEpisodeAnnotation:
689
692
 
690
693
  import supervisely as sly
691
694
 
692
- address = 'https://app.supervise.ly/'
695
+ address = 'https://app.supervisely.com/'
693
696
  token = 'Your Supervisely API Token'
694
697
  api = sly.Api(address, token)
695
698
 
@@ -733,7 +736,7 @@ class PointcloudEpisodeAnnotation:
733
736
 
734
737
  import supervisely as sly
735
738
 
736
- address = 'https://app.supervise.ly/'
739
+ address = 'https://app.supervisely.com/'
737
740
  token = 'Your Supervisely API Token'
738
741
  api = sly.Api(address, token)
739
742
 
@@ -804,7 +807,7 @@ class PointcloudEpisodeAnnotation:
804
807
  import supervisely as sly
805
808
  from supervisely.video_annotation.key_id_map import KeyIdMap
806
809
 
807
- address = 'https://app.supervise.ly/'
810
+ address = 'https://app.supervisely.com/'
808
811
  token = 'Your Supervisely API Token'
809
812
  api = sly.Api(address, token)
810
813
 
@@ -1,11 +1,15 @@
1
1
  from __future__ import annotations
2
- from typing import Optional, List, Dict
2
+
3
+ from typing import Dict, List, Optional
3
4
 
4
5
  from supervisely._utils import take_with_default
6
+ from supervisely.pointcloud_annotation.pointcloud_episode_object_collection import (
7
+ PointcloudEpisodeObjectCollection,
8
+ )
9
+ from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
5
10
  from supervisely.video_annotation.frame import Frame
6
11
  from supervisely.video_annotation.key_id_map import KeyIdMap
7
- from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
8
- from supervisely.pointcloud_annotation.pointcloud_episode_object_collection import PointcloudEpisodeObjectCollection
12
+
9
13
 
10
14
  class PointcloudEpisodeFrame(Frame):
11
15
  """
@@ -56,19 +60,19 @@ class PointcloudEpisodeFrame(Frame):
56
60
 
57
61
  figure_type = PointcloudFigure
58
62
 
59
- def __init__(self, index: int, figures: Optional[List[PointcloudFigure]]=None):
63
+ def __init__(self, index: int, figures: Optional[List[PointcloudFigure]] = None):
60
64
  super().__init__(index, figures)
61
65
 
62
66
  @classmethod
63
67
  def from_json(
64
- cls,
65
- data: Dict,
66
- objects: PointcloudEpisodeObjectCollection,
67
- frames_count: Optional[int]=None,
68
- key_id_map: Optional[KeyIdMap]=None
68
+ cls,
69
+ data: Dict,
70
+ objects: PointcloudEpisodeObjectCollection,
71
+ frames_count: Optional[int] = None,
72
+ key_id_map: Optional[KeyIdMap] = None,
69
73
  ) -> PointcloudEpisodeFrame:
70
74
  """
71
- Convert a json dict to PointcloudEpisodeFrame. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
75
+ Convert a json dict to PointcloudEpisodeFrame. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
72
76
 
73
77
  :param data: Dict in json format.
74
78
  :type data: dict
@@ -108,5 +112,7 @@ class PointcloudEpisodeFrame(Frame):
108
112
 
109
113
  return super().from_json(data, objects, frames_count, key_id_map)
110
114
 
111
- def clone(self, index: Optional[int] = None, figures: Optional[List[PointcloudFigure]] = None) -> PointcloudEpisodeFrame:
112
- return super().clone(index, figures)
115
+ def clone(
116
+ self, index: Optional[int] = None, figures: Optional[List[PointcloudFigure]] = None
117
+ ) -> PointcloudEpisodeFrame:
118
+ return super().clone(index, figures)
@@ -1,13 +1,16 @@
1
1
  from __future__ import annotations
2
- from typing import List, Dict, Optional, Any, Iterator
3
2
 
4
- from supervisely.video_annotation.frame_collection import FrameCollection
5
- from supervisely.video_annotation.key_id_map import KeyIdMap
6
- from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
7
- from supervisely.pointcloud_annotation.pointcloud_episode_frame import PointcloudEpisodeFrame
3
+ from typing import Any, Dict, Iterator, List, Optional
4
+
5
+ from supervisely.pointcloud_annotation.pointcloud_episode_frame import (
6
+ PointcloudEpisodeFrame,
7
+ )
8
8
  from supervisely.pointcloud_annotation.pointcloud_episode_object_collection import (
9
9
  PointcloudEpisodeObjectCollection,
10
10
  )
11
+ from supervisely.pointcloud_annotation.pointcloud_figure import PointcloudFigure
12
+ from supervisely.video_annotation.frame_collection import FrameCollection
13
+ from supervisely.video_annotation.key_id_map import KeyIdMap
11
14
 
12
15
 
13
16
  class PointcloudEpisodeFrameCollection(FrameCollection):
@@ -259,7 +262,7 @@ class PointcloudEpisodeFrameCollection(FrameCollection):
259
262
  key_id_map: Optional[KeyIdMap] = None,
260
263
  ) -> PointcloudEpisodeFrameCollection:
261
264
  """
262
- Convert a list of json dicts to PointcloudEpisodeFrameCollection. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
265
+ Convert a list of json dicts to PointcloudEpisodeFrameCollection. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
263
266
 
264
267
  :param data: List with dicts in json format.
265
268
  :type data: List[dict]
@@ -1,10 +1,14 @@
1
1
  # coding: utf-8
2
2
  from __future__ import annotations
3
- from typing import List, Dict, Optional, Iterator
3
+
4
+ from typing import Dict, Iterator, List, Optional
5
+
6
+ from supervisely.pointcloud_annotation.pointcloud_episode_object import (
7
+ PointcloudEpisodeObject,
8
+ )
4
9
  from supervisely.pointcloud_annotation.pointcloud_object_collection import (
5
10
  PointcloudObjectCollection,
6
11
  )
7
- from supervisely.pointcloud_annotation.pointcloud_episode_object import PointcloudEpisodeObject
8
12
  from supervisely.project.project_meta import ProjectMeta
9
13
  from supervisely.video_annotation.key_id_map import KeyIdMap
10
14
 
@@ -25,7 +29,7 @@ class PointcloudEpisodeObjectCollection(PointcloudObjectCollection):
25
29
  cls, data: List[Dict], project_meta: ProjectMeta, key_id_map: Optional[KeyIdMap] = None
26
30
  ) -> PointcloudEpisodeObjectCollection:
27
31
  """
28
- Convert a list of json dicts to PointcloudEpisodeObjectCollection. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
32
+ Convert a list of json dicts to PointcloudEpisodeObjectCollection. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
29
33
 
30
34
  :param data: List with dicts in json format.
31
35
  :type data: List[dict]
@@ -92,7 +92,7 @@ class PointcloudEpisodeTag(VideoTag):
92
92
  key_id_map: Optional[KeyIdMap] = None,
93
93
  ) -> PointcloudEpisodeTag:
94
94
  """
95
- Convert a json dict to PointcloudEpisodeTag. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
95
+ Convert a json dict to PointcloudEpisodeTag. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
96
96
 
97
97
  :param data: PointcloudEpisodeTag in json format as a dict.
98
98
  :type data: dict
@@ -177,7 +177,7 @@ class PointcloudEpisodeTagCollection(PointcloudTagCollection):
177
177
  import supervisely as sly
178
178
 
179
179
  # You can connect to API directly
180
- address = 'https://app.supervise.ly/'
180
+ address = 'https://app.supervisely.com/'
181
181
  token = 'Your Supervisely API Token'
182
182
  api = sly.Api(address, token)
183
183
 
@@ -224,7 +224,7 @@ class PointcloudEpisodeTagCollection(PointcloudTagCollection):
224
224
  ) -> PointcloudEpisodeTagCollection:
225
225
  """
226
226
  Convert a list with dicts in json format to :class:`PointcloudEpisodeTagCollection<PointcloudEpisodeTagCollection>`.
227
- Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
227
+ Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
228
228
 
229
229
  :param data: List with dicts in json format.
230
230
  :type data: :class:`List[Dict]`
@@ -137,7 +137,7 @@ class PointcloudFigure(VideoFigure):
137
137
  key_id_map: Optional[KeyIdMap] = None,
138
138
  ) -> PointcloudFigure:
139
139
  """
140
- Convert a json dict to PointcloudFigure. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
140
+ Convert a json dict to PointcloudFigure. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
141
141
 
142
142
  :param data: Dict in json format.
143
143
  :type data: dict
@@ -1,16 +1,20 @@
1
1
  # coding: utf-8
2
2
  from __future__ import annotations
3
- from typing import List, Dict, Optional, Iterator
4
- from supervisely.video_annotation.video_object_collection import VideoObjectCollection
3
+
4
+ from typing import Dict, Iterator, List, Optional
5
+
5
6
  from supervisely.pointcloud_annotation.pointcloud_object import PointcloudObject
6
7
  from supervisely.project.project_meta import ProjectMeta
7
8
  from supervisely.video_annotation.key_id_map import KeyIdMap
9
+ from supervisely.video_annotation.video_object_collection import VideoObjectCollection
10
+
8
11
 
9
12
  class PointcloudObjectCollection(VideoObjectCollection):
10
- '''
13
+ """
11
14
  Collection with :class:`PointcloudObject<supervisely.pointcloud_annotation.pointcloud_object.PointcloudObject>` instances.
12
15
  :class:`PointcloudObjectCollection<PointcloudObjectCollection>` object is immutable.
13
- '''
16
+ """
17
+
14
18
  item_type = PointcloudObject
15
19
 
16
20
  def __iter__(self) -> Iterator[PointcloudObject]:
@@ -18,13 +22,10 @@ class PointcloudObjectCollection(VideoObjectCollection):
18
22
 
19
23
  @classmethod
20
24
  def from_json(
21
- cls,
22
- data: List[Dict],
23
- project_meta: ProjectMeta,
24
- key_id_map: Optional[KeyIdMap]=None
25
+ cls, data: List[Dict], project_meta: ProjectMeta, key_id_map: Optional[KeyIdMap] = None
25
26
  ) -> PointcloudObjectCollection:
26
27
  """
27
- Convert a list of json dicts to PointcloudObjectCollection. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
28
+ Convert a list of json dicts to PointcloudObjectCollection. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
28
29
 
29
30
  :param data: List with dicts in json format.
30
31
  :type data: List[dict]
@@ -62,4 +63,4 @@ class PointcloudObjectCollection(VideoObjectCollection):
62
63
  pointcloud_obj_collection = sly.PointcloudObjectCollection.from_json(obj_collection_json, meta)
63
64
  """
64
65
 
65
- return super().from_json(data, project_meta, key_id_map=key_id_map)
66
+ return super().from_json(data, project_meta, key_id_map=key_id_map)
@@ -1,13 +1,14 @@
1
1
  from __future__ import annotations
2
- from typing import Optional, Dict, Union
2
+
3
3
  import uuid
4
+ from typing import Dict, Optional, Union
4
5
 
5
6
  from supervisely._utils import take_with_default
6
7
  from supervisely.annotation.tag import Tag, TagJsonFields
7
8
  from supervisely.annotation.tag_meta import TagMeta
8
9
  from supervisely.annotation.tag_meta_collection import TagMetaCollection
10
+ from supervisely.pointcloud_annotation.constants import ID, KEY
9
11
  from supervisely.video_annotation.key_id_map import KeyIdMap
10
- from supervisely.pointcloud_annotation.constants import KEY, ID
11
12
 
12
13
 
13
14
  class PointcloudTag(Tag):
@@ -195,7 +196,7 @@ class PointcloudTag(Tag):
195
196
  def to_json(self, key_id_map: Optional[KeyIdMap] = None) -> Dict:
196
197
  """
197
198
  Convert the PointcloudTag to a json dict.
198
- Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
199
+ Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
199
200
 
200
201
  :param key_id_map: KeyIdMap object.
201
202
  :type key_id_map: :class:`KeyIdMap<supervisely.video_annotation.key_id_map.KeyIdMap>`, optional
@@ -238,7 +239,7 @@ class PointcloudTag(Tag):
238
239
  key_id_map: Optional[KeyIdMap] = None,
239
240
  ) -> PointcloudTag:
240
241
  """
241
- Convert a json dict to VideoTag. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
242
+ Convert a json dict to VideoTag. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
242
243
 
243
244
  :param data: PointcloudTag in json format as a dict.
244
245
  :type data: :class:`dict`
@@ -1,12 +1,13 @@
1
1
  from __future__ import annotations
2
- from typing import Optional, List, Dict, Any, Iterator
3
2
 
4
- from supervisely.video_annotation.key_id_map import KeyIdMap
3
+ from typing import Any, Dict, Iterator, List, Optional
4
+
5
+ import supervisely.sly_logger as logger
5
6
  from supervisely.annotation.tag_collection import TagCollection
7
+ from supervisely.annotation.tag_meta import TagMeta
6
8
  from supervisely.annotation.tag_meta_collection import TagMetaCollection
7
9
  from supervisely.pointcloud_annotation.pointcloud_tag import PointcloudTag
8
- from supervisely.annotation.tag_meta import TagMeta
9
- import supervisely.sly_logger as logger
10
+ from supervisely.video_annotation.key_id_map import KeyIdMap
10
11
 
11
12
 
12
13
  class PointcloudTagCollection(TagCollection):
@@ -192,7 +193,7 @@ class PointcloudTagCollection(TagCollection):
192
193
  def to_json(self, key_id_map: Optional[KeyIdMap] = None) -> List[Dict]:
193
194
  """
194
195
  Convert the :class:`PointcloudTagCollection<PointcloudTagCollection>` to a list of json dicts.
195
- Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
196
+ Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
196
197
 
197
198
  :param key_id_map: KeyIdMap object.
198
199
  :type key_id_map: :class:`KeyIdMap<supervisely.video_annotation.key_id_map.KeyIdMap>`, optional
@@ -241,7 +242,7 @@ class PointcloudTagCollection(TagCollection):
241
242
  ) -> PointcloudTagCollection:
242
243
  """
243
244
  Convert a list with dicts in json format to :class:`PointcloudTagCollection<PointcloudTagCollection>`.
244
- Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
245
+ Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
245
246
 
246
247
  :param data: List with dicts in json format.
247
248
  :type data: :class:`List[Dict]`
@@ -1,6 +1,6 @@
1
1
  """Functions for processing pointcloud episodes"""
2
2
 
3
- from supervisely._utils import is_development, abs_url
3
+ from supervisely._utils import abs_url, is_development
4
4
 
5
5
 
6
6
  def get_labeling_tool_url(dataset_id, pointcloud_id):
@@ -29,7 +29,7 @@ def get_labeling_tool_url(dataset_id, pointcloud_id):
29
29
  api = sly.Api.from_env()
30
30
 
31
31
  # Pass values into the API constructor (optional, not recommended)
32
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
32
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
33
33
 
34
34
  pointcloud_id = 19373403
35
35
  pcd_info = api.pointcloud_episodes.get_info_by_id(pointcloud_id)
@@ -71,7 +71,7 @@ def download(
71
71
  api = sly.Api.from_env()
72
72
 
73
73
  # Pass values into the API constructor (optional, not recommended)
74
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
74
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
75
75
 
76
76
  dest_dir = 'your/local/dest/dir'
77
77
 
@@ -30,7 +30,6 @@ from supervisely.task.progress import Progress, tqdm_sly
30
30
  from supervisely.video_annotation.frame import Frame
31
31
  from supervisely.video_annotation.key_id_map import KeyIdMap
32
32
 
33
-
34
33
  KITTI_ITEM_DIR_NAME = "velodyne"
35
34
 
36
35
 
@@ -696,7 +695,7 @@ def download_pointcloud_episode_project(
696
695
  api = sly.Api.from_env()
697
696
 
698
697
  # Pass values into the API constructor (optional, not recommended)
699
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
698
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
700
699
 
701
700
  dest_dir = 'your/local/dest/dir'
702
701
 
@@ -921,7 +921,7 @@ def download_pointcloud_project(
921
921
  api = sly.Api.from_env()
922
922
 
923
923
  # Pass values into the API constructor (optional, not recommended)
924
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
924
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
925
925
 
926
926
  dest_dir = 'your/local/dest/dir'
927
927
 
@@ -947,7 +947,7 @@ class Dataset(KeyObject):
947
947
  # updated_at='2021-03-02T10:04:33.973Z',
948
948
  # meta={},
949
949
  # path_original='/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg',
950
- # full_storage_url='http://app.supervise.ly/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg'),
950
+ # full_storage_url='http://app.supervisely.com/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg'),
951
951
  # tags=[]
952
952
  # )
953
953
  """
@@ -987,7 +987,7 @@ class Dataset(KeyObject):
987
987
  # updated_at='2021-03-02T10:04:33.973Z',
988
988
  # meta={},
989
989
  # path_original='/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg',
990
- # full_storage_url='http://app.supervise.ly/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg'),
990
+ # full_storage_url='http://app.supervisely.com/h5un6l2bnaz1vj8a9qgms4-public/images/original/7/h/Vo/...jpeg'),
991
991
  # tags=[]
992
992
  # )
993
993
  """
@@ -3392,7 +3392,7 @@ class Project:
3392
3392
  - Dict of AlphaGeometries
3393
3393
 
3394
3394
  :param api: Supervisely API address and token.
3395
- :type api: :class:`Api<supervise.ly.api.api.Api>`
3395
+ :type api: :class:`Api<supervisely.api.api.Api>`
3396
3396
  :param project_id: Project ID to download.
3397
3397
  :type project_id: :class:`int`
3398
3398
  :param dest_dir: Destination path to local directory.
@@ -4750,7 +4750,7 @@ def download_project(
4750
4750
  api = sly.Api.from_env()
4751
4751
 
4752
4752
  # Pass values into the API constructor (optional, not recommended)
4753
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
4753
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
4754
4754
 
4755
4755
  dest_dir = 'your/local/dest/dir'
4756
4756
 
@@ -5438,6 +5438,7 @@ def _dataset_structure_md(
5438
5438
 
5439
5439
  return "".join(result_md)
5440
5440
 
5441
+
5441
5442
  def _dataset_descriptions_md(project_info: sly.ProjectInfo, api: sly.Api) -> str:
5442
5443
  """Creates a markdown string with dictionary of descriptions and custom data of datasets.
5443
5444
  :param project_info: Project information.
@@ -5456,13 +5457,13 @@ def _dataset_descriptions_md(project_info: sly.ProjectInfo, api: sly.Api) -> str
5456
5457
  full_ds_name = "/".join(parents + [dataset_info.name])
5457
5458
  if dataset_info.description or dataset_info.custom_data:
5458
5459
  data_found = True
5459
- result_md += f" \"{full_ds_name}\": {{\n"
5460
+ result_md += f' "{full_ds_name}": {{\n'
5460
5461
  if dataset_info.description:
5461
- result_md += f" \"description\": \"{dataset_info.description}\",\n"
5462
+ result_md += f' "description": "{dataset_info.description}",\n'
5462
5463
  if dataset_info.custom_data:
5463
5464
  formated_custom_data = json.dumps(dataset_info.custom_data, indent=4)
5464
5465
  formated_custom_data = formated_custom_data.replace("\n", "\n ")
5465
- result_md += f" \"custom_data\": {formated_custom_data}\n"
5466
+ result_md += f' "custom_data": {formated_custom_data}\n'
5466
5467
  result_md += " },\n"
5467
5468
  result_md += "}\n```"
5468
5469
  if not data_found:
@@ -291,7 +291,7 @@ class ProjectMeta(JsonSerializable):
291
291
 
292
292
  def to_json(self) -> Dict:
293
293
  """
294
- Convert the ProjectMeta to a json dict. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
294
+ Convert the ProjectMeta to a json dict. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
295
295
 
296
296
  :return: Json format as a dict
297
297
  :rtype: :class:`dict`
@@ -344,7 +344,7 @@ class ProjectMeta(JsonSerializable):
344
344
  @classmethod
345
345
  def from_json(cls, data: Dict) -> ProjectMeta:
346
346
  """
347
- Convert a json dict to ProjectMeta. Read more about `Supervisely format <https://docs.supervise.ly/data-organization/00_ann_format_navi>`_.
347
+ Convert a json dict to ProjectMeta. Read more about `Supervisely format <https://docs.supervisely.com/data-organization/00_ann_format_navi>`_.
348
348
 
349
349
  :param data: ProjectMeta in json format as a dict.
350
350
  :type data: dict
@@ -19,7 +19,7 @@ In this section, you can find information about the dataset structure. Dataset n
19
19
  Please, visit the [Supervisely blog](https://supervisely.com/blog) to keep up with the latest news, updates, and tutorials and subscribe to [our YouTube channel](https://www.youtube.com/c/Supervisely) to watch video tutorials.<br>
20
20
 
21
21
  - [Supervisely Developer Portal](https://developer.supervisely.com/)
22
- - [Supervisely JSON format](https://docs.supervise.ly/data-organization/00_ann_format_navi)
22
+ - [Supervisely JSON format](https://docs.supervisely.com/data-organization/00_ann_format_navi)
23
23
  - [Intro to Python SDK](https://developer.supervisely.com/getting-started/intro-to-python-sdk)
24
24
  - [Python SDK reference](https://supervisely.readthedocs.io/en/latest/sdk_packages.html)
25
25
  - [API documentnation](https://api.docs.supervisely.com/)
@@ -53,7 +53,7 @@ def upload(
53
53
  api = sly.Api.from_env()
54
54
 
55
55
  # Pass values into the API constructor (optional, not recommended)
56
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
56
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
57
57
 
58
58
  src_dir = '/your/local/source/dir'
59
59
 
@@ -1297,7 +1297,7 @@ def download_video_project(
1297
1297
  api = sly.Api.from_env()
1298
1298
 
1299
1299
  # Pass values into the API constructor (optional, not recommended)
1300
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
1300
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
1301
1301
 
1302
1302
  dest_dir = 'your/local/dest/dir'
1303
1303
 
@@ -353,7 +353,7 @@ def download_volume_project(
353
353
  api = sly.Api.from_env()
354
354
 
355
355
  # Pass values into the API constructor (optional, not recommended)
356
- # api = sly.Api(server_address="https://app.supervise.ly", token="4r47N...xaTatb")
356
+ # api = sly.Api(server_address="https://app.supervisely.com", token="4r47N...xaTatb")
357
357
 
358
358
  dest_dir = 'your/local/dest/dir'
359
359