bizyengine 0.4.6__py3-none-any.whl → 1.1.0__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.
@@ -155,10 +155,9 @@ class BizyAirSegmentAnythingPointBox:
155
155
  assert (
156
156
  w <= SIZE_LIMIT and h <= SIZE_LIMIT
157
157
  ), f"width and height must be less than {SIZE_LIMIT}x{SIZE_LIMIT}, but got {w} and {h}"
158
-
159
158
  if is_point:
160
159
  coordinates = [
161
- eval(SAM_COORDINATE["point_coords"][key])
160
+ json.loads(SAM_COORDINATE["point_coords"][key])
162
161
  for key in SAM_COORDINATE["point_coords"]
163
162
  ]
164
163
 
@@ -179,7 +178,7 @@ class BizyAirSegmentAnythingPointBox:
179
178
  }
180
179
  else:
181
180
  coordinates = [
182
- eval(SAM_COORDINATE["box_coords"][key])
181
+ json.loads(SAM_COORDINATE["box_coords"][key])
183
182
  for key in SAM_COORDINATE["box_coords"]
184
183
  ]
185
184
  input_box = [
@@ -224,6 +223,9 @@ class BizyAirSegmentAnythingPointBox:
224
223
  raise Exception(f"Unexpected response: {ret} {e=}")
225
224
 
226
225
  if ret["status"] == "error":
226
+ if "data" in ret:
227
+ if "error" in ret["data"]:
228
+ raise Exception(ret["data"]["error"])
227
229
  raise Exception(ret["message"])
228
230
 
229
231
  msg = ret["data"]
bizyengine/version.txt CHANGED
@@ -1 +1 @@
1
- 0.4.6
1
+ 1.1.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bizyengine
3
- Version: 0.4.6
3
+ Version: 1.1.0
4
4
  Summary: [a/BizyAir](https://github.com/siliconflow/BizyAir) Comfy Nodes that can run in any environment.
5
5
  Author-email: SiliconFlow <yaochi@siliconflow.cn>
6
6
  Project-URL: Repository, https://github.com/siliconflow/BizyAir
@@ -1,5 +1,5 @@
1
1
  bizyengine/__init__.py,sha256=GP9V-JM07fz7uv_qTB43QEA2rKdrVJxi5I7LRnn_3ZQ,914
2
- bizyengine/version.txt,sha256=IIEpneCMo0_ihBdTj147GsGWQ-Q0gBYQP01x1pjhWOM,5
2
+ bizyengine/version.txt,sha256=f70hDr7BH2WpcZDvkAeVxLjaOAWvP1objR0nJVaykso,5
3
3
  bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
4
4
  bizyengine/bizy_server/api_client.py,sha256=Txt17UOwpHRgbo5vXI00VEr1Z-rJi1IZjptKnV6QaSs,26719
5
5
  bizyengine/bizy_server/errno.py,sha256=OsVdedWFunQyJdZ7ijMqaL7gKrrP6DxndhJ0ZGnif00,6856
@@ -67,10 +67,10 @@ bizyengine/misc/nodes.py,sha256=HJ4m7AiyfU_SynMYoTuYgYGsflzeTv4Zy4wlA6a8xk4,3626
67
67
  bizyengine/misc/nodes_controlnet_aux.py,sha256=9DoNT06go6fm2wjttUdPQKfqzumtEPnHUe3e93cCarc,16211
68
68
  bizyengine/misc/nodes_controlnet_union_sdxl.py,sha256=e6Zs7unfPU-18VCLGgZXFOa0x1L8NJQyTkPv_YqI-zA,5857
69
69
  bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,1561
70
- bizyengine/misc/segment_anything.py,sha256=ZaZqs-NjqC8nFK1BzN0ED81wiD8iYoHWhiRkrJDkv6o,8535
70
+ bizyengine/misc/segment_anything.py,sha256=RRm8FOfDY9VxdVrLjcdzJRh2pSM-kmNcCySuYnx9l7w,8677
71
71
  bizyengine/misc/supernode.py,sha256=eOhV7gLK6FaqXwASmD-0HJ-OPFrZk2e1IGOI1taCL9w,5152
72
72
  bizyengine/misc/utils.py,sha256=FRDEy63vDpssQxSFXrlK6WuXu15dNitYDIGGNOqtdH8,6353
73
- bizyengine-0.4.6.dist-info/METADATA,sha256=SAgQKdJsfPRhnpKup0GVp0SPo1LmXIZH4f-JFXhK_qo,574
74
- bizyengine-0.4.6.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
75
- bizyengine-0.4.6.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
76
- bizyengine-0.4.6.dist-info/RECORD,,
73
+ bizyengine-1.1.0.dist-info/METADATA,sha256=8OrQtiwNf9Zf50HVTGwxVeOkwb9QKUWFRpUV4wpnyaY,574
74
+ bizyengine-1.1.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
75
+ bizyengine-1.1.0.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
76
+ bizyengine-1.1.0.dist-info/RECORD,,