bizyengine 1.2.22__py3-none-any.whl → 1.2.23__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.
- bizyengine/bizyair_extras/nodes_wan_i2v.py +20 -12
- bizyengine/version.txt +1 -1
- {bizyengine-1.2.22.dist-info → bizyengine-1.2.23.dist-info}/METADATA +1 -1
- {bizyengine-1.2.22.dist-info → bizyengine-1.2.23.dist-info}/RECORD +6 -6
- {bizyengine-1.2.22.dist-info → bizyengine-1.2.23.dist-info}/WHEEL +0 -0
- {bizyengine-1.2.22.dist-info → bizyengine-1.2.23.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
import time
|
|
3
|
+
import traceback
|
|
3
4
|
import warnings
|
|
4
5
|
|
|
5
6
|
import requests
|
|
@@ -19,14 +20,14 @@ except ModuleNotFoundError as e:
|
|
|
19
20
|
|
|
20
21
|
from ..core import pop_api_key_and_prompt_id
|
|
21
22
|
from ..core.common import client
|
|
22
|
-
from ..core.common.env_var import BIZYAIR_DEBUG
|
|
23
|
+
from ..core.common.env_var import BIZYAIR_DEBUG, BIZYAIR_SERVER_ADDRESS
|
|
23
24
|
from ..core.nodes_base import BizyAirBaseNode
|
|
24
25
|
from ..core.path_utils import compose_model_name
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
class WanApiNodeBase:
|
|
28
29
|
MODEL_ENDPOINTS = {
|
|
29
|
-
"Wan-AI/Wan2.1-I2V-14B-480P-Diffusers": "
|
|
30
|
+
"Wan-AI/Wan2.1-I2V-14B-480P-Diffusers": f"{BIZYAIR_SERVER_ADDRESS}/supernode/faas-wan-i2v-14b-480p-server"
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
|
|
@@ -165,29 +166,36 @@ class Wan_ImageToVideoPipeline(WanApiNodeBase, BizyAirBaseNode):
|
|
|
165
166
|
payload = {"prompt": request_data}
|
|
166
167
|
if "prompt_id" in kwargs:
|
|
167
168
|
payload["prompt_id"] = kwargs["prompt_id"]
|
|
168
|
-
|
|
169
|
+
|
|
170
|
+
resp_body = client.send_request(
|
|
169
171
|
url=endpoint,
|
|
170
172
|
data=json.dumps(payload).encode(),
|
|
171
173
|
headers=headers,
|
|
174
|
+
callback=lambda x: x,
|
|
172
175
|
)
|
|
173
|
-
|
|
176
|
+
request_id = resp_body["request_id"]
|
|
177
|
+
return f"{BIZYAIR_SERVER_ADDRESS}/supernode/status?request_id={request_id}"
|
|
174
178
|
|
|
175
179
|
def _poll_for_completion(self, query_url, **kwargs):
|
|
176
180
|
start_time = time.time()
|
|
177
181
|
headers = self._prepare_headers(api_key=kwargs["api_key"])
|
|
178
182
|
|
|
179
183
|
while time.time() - start_time < self.MAX_POLLING_TIME:
|
|
180
|
-
response = requests.get(query_url, headers=headers)
|
|
181
184
|
try:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
+
resp_body = client.send_request(
|
|
186
|
+
method="GET", url=query_url, headers=headers
|
|
187
|
+
)
|
|
188
|
+
data = resp_body.get("data", {})
|
|
189
|
+
if data.get("status") == "Succeed":
|
|
190
|
+
result_url = data["data_url"]
|
|
191
|
+
result_resp = requests.get(result_url)
|
|
192
|
+
return result_resp.json()
|
|
193
|
+
elif data.get("status") == "Failed":
|
|
194
|
+
raise RuntimeError(f"Task failed: {data}")
|
|
185
195
|
time.sleep(self.POLLING_INTERVAL)
|
|
186
|
-
except
|
|
196
|
+
except Exception as e:
|
|
187
197
|
if BIZYAIR_DEBUG:
|
|
188
|
-
print(
|
|
189
|
-
f"Response parsing error: {e} | Raw response: {response.text}"
|
|
190
|
-
)
|
|
198
|
+
print(f"Response error: {e}\n{traceback.format_exc()}")
|
|
191
199
|
time.sleep(self.POLLING_INTERVAL)
|
|
192
200
|
|
|
193
201
|
raise TimeoutError("Task processing timeout")
|
bizyengine/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.23
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bizyengine
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.23
|
|
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=
|
|
2
|
+
bizyengine/version.txt,sha256=JGuCN2s9jW7ASnwYZqwTZiJG7zGn_wNDR1LRqsr2jMc,7
|
|
3
3
|
bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
|
|
4
4
|
bizyengine/bizy_server/api_client.py,sha256=qY1hQ11AeDf5m647qrYvn3YPBzP6Yaw8n2Z9hTk5Wtg,43624
|
|
5
5
|
bizyengine/bizy_server/errno.py,sha256=Q-U96XnZQCuPH_44Om8wnc2-Kh7qFqwLKtox27msU54,16095
|
|
@@ -34,7 +34,7 @@ bizyengine/bizyair_extras/nodes_testing_utils.py,sha256=lYmcyCIkTkQ7WOZfpEPU9wUb
|
|
|
34
34
|
bizyengine/bizyair_extras/nodes_trellis.py,sha256=YFhn8j3jSafH3ZuLqLqHVUkBqVQrUIxOLsu4Y3WrvSU,7432
|
|
35
35
|
bizyengine/bizyair_extras/nodes_ultimatesdupscale.py,sha256=-_SsLTAWAQDv4uw-4Z7IGP2tXTe73BJ3N5D6RqVVAK4,4133
|
|
36
36
|
bizyengine/bizyair_extras/nodes_upscale_model.py,sha256=lrzA1BFI2w5aEPCmNPMh07s-WDzG-xTT49uU6WCnlP8,1151
|
|
37
|
-
bizyengine/bizyair_extras/nodes_wan_i2v.py,sha256=
|
|
37
|
+
bizyengine/bizyair_extras/nodes_wan_i2v.py,sha256=3XwcxLHmgrihgXDEzcVOjU6VjqnZa3mErINlY014PFA,8435
|
|
38
38
|
bizyengine/bizyair_extras/nodes_wan_video.py,sha256=d1mCcW9jCj-5Oymmymy0Vz-nwWv36FMGE5Gn-E7Rul4,1632
|
|
39
39
|
bizyengine/bizyair_extras/route_bizyair_tools.py,sha256=DMVc7J0oT3H_cdAzoaog-ulhE7zj__w1t-HlWnIpCg0,2080
|
|
40
40
|
bizyengine/bizyair_extras/nodes_ipadapter_plus/__init__.py,sha256=ECKATm_EKi_4G47-FJI4-3rHO3iiF9FVakfSTE-pooE,36
|
|
@@ -75,7 +75,7 @@ bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,
|
|
|
75
75
|
bizyengine/misc/segment_anything.py,sha256=wNKYwlYPMszfwj23524geFZJjZaG4eye65SGaUnh77I,8941
|
|
76
76
|
bizyengine/misc/supernode.py,sha256=STN9gaxfTSErH8OiHeZa47d8z-G9S0I7fXuJvHQOBFM,4532
|
|
77
77
|
bizyengine/misc/utils.py,sha256=deQjBgLAkxIr-NaOMm77TcgBT3ExAp0MFm5ehUJ3CGs,6829
|
|
78
|
-
bizyengine-1.2.
|
|
79
|
-
bizyengine-1.2.
|
|
80
|
-
bizyengine-1.2.
|
|
81
|
-
bizyengine-1.2.
|
|
78
|
+
bizyengine-1.2.23.dist-info/METADATA,sha256=SuF3jmw6QZxmFWQE3nxhWSggrt8WUPCH7l2nEHDjhaU,675
|
|
79
|
+
bizyengine-1.2.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
80
|
+
bizyengine-1.2.23.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
|
|
81
|
+
bizyengine-1.2.23.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|