supervisely 6.73.402__py3-none-any.whl → 6.73.404__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/api/project_api.py +2 -2
- supervisely/geometry/cuboid_2d.py +31 -3
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/METADATA +1 -1
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/RECORD +8 -8
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/LICENSE +0 -0
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/WHEEL +0 -0
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/entry_points.txt +0 -0
- {supervisely-6.73.402.dist-info → supervisely-6.73.404.dist-info}/top_level.txt +0 -0
supervisely/api/project_api.py
CHANGED
|
@@ -2335,7 +2335,7 @@ class ProjectApi(CloneableModuleApi, UpdateableModule, RemoveableModuleApi):
|
|
|
2335
2335
|
if method is not None:
|
|
2336
2336
|
request_body[ApiField.METHOD] = method
|
|
2337
2337
|
|
|
2338
|
-
response = self._api.post("
|
|
2338
|
+
response = self._api.post("embeddings.send-ai-search", request_body)
|
|
2339
2339
|
return response.json().get(ApiField.COLLECTION_ID, None)
|
|
2340
2340
|
|
|
2341
2341
|
def calculate_embeddings(self, id: int) -> None:
|
|
@@ -2359,4 +2359,4 @@ class ProjectApi(CloneableModuleApi, UpdateableModule, RemoveableModuleApi):
|
|
|
2359
2359
|
# Calculate embeddings for the project
|
|
2360
2360
|
api.project.calculate_embeddings(project_id)
|
|
2361
2361
|
"""
|
|
2362
|
-
self._api.post("
|
|
2362
|
+
self._api.post("embeddings.calculate-project-embeddings", {ApiField.PROJECT_ID: id})
|
|
@@ -89,6 +89,7 @@ class Cuboid2d(GraphNodes):
|
|
|
89
89
|
position: Optional[Dict] = None,
|
|
90
90
|
rotation: Optional[Dict] = None,
|
|
91
91
|
dimensions: Optional[Dict] = None,
|
|
92
|
+
face: Optional[List[str]] = None,
|
|
92
93
|
):
|
|
93
94
|
super().__init__(
|
|
94
95
|
nodes=nodes,
|
|
@@ -101,6 +102,7 @@ class Cuboid2d(GraphNodes):
|
|
|
101
102
|
self._position = position
|
|
102
103
|
self._rotation = rotation
|
|
103
104
|
self._dimensions = dimensions
|
|
105
|
+
self._face = face
|
|
104
106
|
|
|
105
107
|
if len(self._nodes) != 8:
|
|
106
108
|
raise ValueError("Cuboid2d must have exactly 8 vertices")
|
|
@@ -148,6 +150,17 @@ class Cuboid2d(GraphNodes):
|
|
|
148
150
|
if isinstance(self._dimensions, dict):
|
|
149
151
|
return self._dimensions.copy()
|
|
150
152
|
|
|
153
|
+
@property
|
|
154
|
+
def face(self) -> Optional[List[str]]:
|
|
155
|
+
"""
|
|
156
|
+
Copy of the face of the Cuboid2d.
|
|
157
|
+
|
|
158
|
+
:return: Face of the Cuboid2d
|
|
159
|
+
:rtype: Optional[List[str]]
|
|
160
|
+
"""
|
|
161
|
+
if isinstance(self._face, list):
|
|
162
|
+
return self._face.copy()
|
|
163
|
+
|
|
151
164
|
@classmethod
|
|
152
165
|
def from_json(cls, data: Dict[str, Dict]) -> Cuboid2d:
|
|
153
166
|
"""
|
|
@@ -182,7 +195,13 @@ class Cuboid2d(GraphNodes):
|
|
|
182
195
|
"x": 0.1425456564648202,
|
|
183
196
|
"y": 0.1,
|
|
184
197
|
"z": 0.36738880874660756
|
|
185
|
-
}
|
|
198
|
+
},
|
|
199
|
+
"face": [
|
|
200
|
+
"face2-topleft",
|
|
201
|
+
"face2-topright",
|
|
202
|
+
"face2-bottomright",
|
|
203
|
+
"face2-bottomleft"
|
|
204
|
+
]
|
|
186
205
|
}
|
|
187
206
|
}
|
|
188
207
|
from supervisely.geometry.graph import Cuboid2d
|
|
@@ -200,6 +219,7 @@ class Cuboid2d(GraphNodes):
|
|
|
200
219
|
position = data.get("position", None)
|
|
201
220
|
rotation = data.get("rotation", None)
|
|
202
221
|
dimensions = data.get("dimensions", None)
|
|
222
|
+
face = data.get("face", None)
|
|
203
223
|
return cls(
|
|
204
224
|
nodes=nodes,
|
|
205
225
|
sly_id=sly_id,
|
|
@@ -210,6 +230,7 @@ class Cuboid2d(GraphNodes):
|
|
|
210
230
|
position=position,
|
|
211
231
|
rotation=rotation,
|
|
212
232
|
dimensions=dimensions,
|
|
233
|
+
face=face,
|
|
213
234
|
)
|
|
214
235
|
|
|
215
236
|
def to_json(self) -> Dict[str, Dict]:
|
|
@@ -255,8 +276,13 @@ class Cuboid2d(GraphNodes):
|
|
|
255
276
|
# "x": 0.1425456564648202,
|
|
256
277
|
# "y": 0.1,
|
|
257
278
|
# "z": 0.36738880874660756
|
|
258
|
-
# }
|
|
259
|
-
|
|
279
|
+
# },
|
|
280
|
+
# "face": [
|
|
281
|
+
# "face2-topleft",
|
|
282
|
+
# "face2-topright",
|
|
283
|
+
# "face2-bottomright",
|
|
284
|
+
# "face2-bottomleft"
|
|
285
|
+
# ],
|
|
260
286
|
# }
|
|
261
287
|
"""
|
|
262
288
|
res = {
|
|
@@ -270,6 +296,8 @@ class Cuboid2d(GraphNodes):
|
|
|
270
296
|
res["rotation"] = self._rotation
|
|
271
297
|
if self._dimensions is not None:
|
|
272
298
|
res["dimensions"] = self._dimensions
|
|
299
|
+
if self._face is not None:
|
|
300
|
+
res["face"] = self._face
|
|
273
301
|
|
|
274
302
|
self._add_creation_info(res)
|
|
275
303
|
return res
|
|
@@ -38,7 +38,7 @@ supervisely/api/labeling_queue_api.py,sha256=ilNjAL1d9NSa9yabQn6E-W26YdtooT3ZGXI
|
|
|
38
38
|
supervisely/api/module_api.py,sha256=Pqj_BxgHmfba0MGA5PPNU-dbSrwR4Fcyfaqnc-cKwGI,46006
|
|
39
39
|
supervisely/api/object_class_api.py,sha256=7-npNFMYjWNtSXYZg6syc6bX56_oCzDU2kFRPGQWCwA,10399
|
|
40
40
|
supervisely/api/plugin_api.py,sha256=SFm0IlTTOjuHBLUMgG4d4k6U3cWJocE-SVb-f08fwMQ,5286
|
|
41
|
-
supervisely/api/project_api.py,sha256=
|
|
41
|
+
supervisely/api/project_api.py,sha256=YMLBXbaZuuv0uzczaxwbIBGKTnXi276Cf-JPUGURb0g,88668
|
|
42
42
|
supervisely/api/project_class_api.py,sha256=5cyjdGPPb2tpttu5WmYoOxUNiDxqiojschkhZumF0KM,1426
|
|
43
43
|
supervisely/api/remote_storage_api.py,sha256=1O4rTIwW8s9gxC00yvFuKbEMGNsa7YSRlZ8j494ARwY,17793
|
|
44
44
|
supervisely/api/report_api.py,sha256=Om7CGulUbQ4BuJ16eDtz7luLe0JQNqab-LoLpUXu7YE,7123
|
|
@@ -695,7 +695,7 @@ supervisely/geometry/closed_surface_mesh.py,sha256=3ZplCm3Q2bhPcxNmtv2U1UfdezRkC
|
|
|
695
695
|
supervisely/geometry/constants.py,sha256=6lXpwTTFuswuH9WXMy4akHKshQ5C6fgQhdY-XCdVIMA,842
|
|
696
696
|
supervisely/geometry/conversions.py,sha256=ZY6xWYFWaDA5KDJkcIBBP8LAmMfZwxMeVFfYUYEM6fw,1170
|
|
697
697
|
supervisely/geometry/cuboid.py,sha256=GVHeUrVgfjUjE3PorV_vtge6_thDvvUYI5-9_HZjfWs,21077
|
|
698
|
-
supervisely/geometry/cuboid_2d.py,sha256=
|
|
698
|
+
supervisely/geometry/cuboid_2d.py,sha256=I0-V0SPlM-NTStfzDyc7YjW9XSOguCs4yhDZS7-qtZ4,14358
|
|
699
699
|
supervisely/geometry/cuboid_3d.py,sha256=x472ZPHTZDIY5Dj8tKbLQG3BCukFPgSvPJlxfHdKi1w,4168
|
|
700
700
|
supervisely/geometry/geometry.py,sha256=dbXnct8hrr7Wour6yCrtAef22KSJ2uYRm1F5GE10_MM,15287
|
|
701
701
|
supervisely/geometry/graph.py,sha256=kSShcGU4kZgwAbvTrqGzC55qha0nI7M5luiMZSbNx_4,24486
|
|
@@ -1114,9 +1114,9 @@ supervisely/worker_proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
1114
1114
|
supervisely/worker_proto/worker_api_pb2.py,sha256=VQfi5JRBHs2pFCK1snec3JECgGnua3Xjqw_-b3aFxuM,59142
|
|
1115
1115
|
supervisely/worker_proto/worker_api_pb2_grpc.py,sha256=3BwQXOaP9qpdi0Dt9EKG--Lm8KGN0C5AgmUfRv77_Jk,28940
|
|
1116
1116
|
supervisely_lib/__init__.py,sha256=7-3QnN8Zf0wj8NCr2oJmqoQWMKKPKTECvjH9pd2S5vY,159
|
|
1117
|
-
supervisely-6.73.
|
|
1118
|
-
supervisely-6.73.
|
|
1119
|
-
supervisely-6.73.
|
|
1120
|
-
supervisely-6.73.
|
|
1121
|
-
supervisely-6.73.
|
|
1122
|
-
supervisely-6.73.
|
|
1117
|
+
supervisely-6.73.404.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
1118
|
+
supervisely-6.73.404.dist-info/METADATA,sha256=QTw0unaIdzqvpWAHzgKJ5mGb84Y0oNS3ZPCT6WW3CTc,35254
|
|
1119
|
+
supervisely-6.73.404.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
|
1120
|
+
supervisely-6.73.404.dist-info/entry_points.txt,sha256=U96-5Hxrp2ApRjnCoUiUhWMqijqh8zLR03sEhWtAcms,102
|
|
1121
|
+
supervisely-6.73.404.dist-info/top_level.txt,sha256=kcFVwb7SXtfqZifrZaSE3owHExX4gcNYe7Q2uoby084,28
|
|
1122
|
+
supervisely-6.73.404.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|