Skip to content

Commit 34ddb6f

Browse files
committed
Version 1.1.18
1 parent 05ac26a commit 34ddb6f

45 files changed

Lines changed: 7874 additions & 1411 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ and at [patreon@TB_LAAR](https://www.patreon.com/TB_LAAR)).
1010

1111

1212

13-
14-
## V3 Migration Status
15-
16-
This branch is migrated to ComfyUI v3 node loading and pins the API import to:
17-
18-
```python
19-
from comfy_api.v0_0_2 import ComfyExtension, io, ui
20-
```
21-
22-
Notes:
23-
- v3-only registration is provided via `comfy_entrypoint()`.
24-
- Legacy `NODE_CLASS_MAPPINGS` loading is no longer the primary path.
25-
- Input ids were normalized to snake_case in the v3 schema layer while keeping display labels.
13+
14+
## V3 Migration Status
15+
16+
This branch is migrated to ComfyUI v3 node loading and pins the API import to:
17+
18+
```python
19+
from comfy_api.v0_0_2 import ComfyExtension, io, ui
20+
```
21+
22+
Notes:
23+
- v3-only registration is provided via `comfy_entrypoint()`.
24+
- Legacy `NODE_CLASS_MAPPINGS` loading is no longer the primary path.
25+
- Input ids were normalized to snake_case in the v3 schema layer while keeping display labels.
2626
## Table of Contents
2727
- [Overview](#overview)
2828
- [Early_Access](#Early_Access)
@@ -168,7 +168,7 @@ https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/vae/diffusion_p
168168
## API_Access
169169
If you like to test the PRO feachers get early access by joining us at:
170170
- joining us at: https://www.patreon.com/TB_LAAR
171-
- get your API key from here: https://api.tbgetur.com/login.php
171+
- get your API key from here: https://api.tbgetur.es/login.php
172172
- add environment variables using TBG_ETUR_API_KEY = your api key
173173
![environment_var.png](img/environment_var.png)
174174

TBG/CALLBACKS/constants.py

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ def __init__(self):
177177
Redux_Style_Model=None,
178178
Redux_Clip_Vision=None,
179179
Laplacian_Pyramid_Blending=None,
180-
color_match_method=None,
181-
color_match_str=None,
182-
tiles_to_process_active=None,
183-
tiles_to_process=None,
180+
color_match_method=None,
181+
color_match_str=None,
182+
model_type=None,
183+
Flux2_Tile_Color_Correction=True,
184+
tiles_to_process_active=None,
185+
tiles_to_process=None,
184186
Tile_Fusion_Mode=None,
185187
Refiner_Tile_Fusion_Mode=None,
186188
PRO_Fusion_Complexity_min_Denoise=0.2,
@@ -278,20 +280,21 @@ def __init__(self):
278280
shift = 0,
279281
shifttl =0,
280282
inpaint_blur_margin = 0,
281-
composite_blur_margin = 0,
282-
crop_margin=0,
283-
tile_grid_W=1024,
284-
tile_grid_H=1024,
285-
rows_qty=1,
286-
cols_qty=1,
287-
outer_mask_area=0,
288-
overlay_between_tiles=0,
289-
fullW=1024,
290-
fullH=1024,
291-
UpscaledInputImageH=0,
292-
UpscaledInputImageW=0,
293-
Fusion_margin=64,
294-
)
283+
composite_blur_margin = 0,
284+
crop_margin=0,
285+
tile_grid_W=1024,
286+
tile_grid_H=1024,
287+
rows_qty=1,
288+
cols_qty=1,
289+
outer_mask_area=0,
290+
overlay_between_tiles=0,
291+
fullW=1024,
292+
fullH=1024,
293+
UpscaledInputImageH=0,
294+
UpscaledInputImageW=0,
295+
Fusion_reference_margin=0,
296+
Fusion_margin=64,
297+
)
295298

296299
self.SEGMENTS = SimpleNamespace(
297300
segms=None,

TBG/SERVERS/COMFYUI_proxy.py

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import os
1414
import socket
1515
import struct
16+
import time
1617
from typing import Any
1718

1819
import cloudpickle
@@ -58,6 +59,7 @@ def _compress_structure(obj):
5859
class MainController:
5960
# Class-level cache for the port to avoid repeated env lookups
6061
_port_cache: int | None = None
62+
_connect_retry_delays = (0.25, 0.5, 1.0, 2.0, 4.0)
6163

6264
@classmethod
6365
def _get_port(cls) -> int:
@@ -101,9 +103,7 @@ def call_main_method_old(
101103

102104
data = cloudpickle.dumps(payload)
103105

104-
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
105-
client.settimeout(None)
106-
client.connect(("127.0.0.1", port))
106+
client = cls._connect_with_retry(port, class_name, method_name)
107107
try:
108108
client.sendall(struct.pack("!Q", len(data)))
109109
client.sendall(data)
@@ -130,6 +130,38 @@ def call_main_method_old(
130130
finally:
131131
client.close()
132132

133+
@classmethod
134+
def _connect_with_retry(cls, port: int, class_name: str, method_name: str) -> socket.socket:
135+
rpc_name = f"{class_name}.{method_name}"
136+
last_error = None
137+
138+
for attempt, delay in enumerate((0.0,) + cls._connect_retry_delays, start=1):
139+
if delay > 0:
140+
time.sleep(delay)
141+
142+
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
143+
client.settimeout(None)
144+
try:
145+
client.connect(("127.0.0.1", int(port)))
146+
if attempt > 1:
147+
print(f"[TBG_MAIN_RPC] Connected for {rpc_name} after retry {attempt - 1}")
148+
return client
149+
except OSError as e:
150+
last_error = e
151+
try:
152+
client.close()
153+
except Exception:
154+
pass
155+
if attempt <= len(cls._connect_retry_delays):
156+
print(
157+
f"[TBG_MAIN_RPC] Connect failed for {rpc_name} "
158+
f"(attempt {attempt}/{len(cls._connect_retry_delays) + 1}): {e}; retrying"
159+
)
160+
continue
161+
162+
print(f"[TBG_MAIN_RPC] Connect failed permanently for {rpc_name}: {last_error}")
163+
raise last_error
164+
133165
@classmethod
134166
def call_main_method(
135167
cls,

TBG/SERVERS/COMFYUI_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main_rpc_server(port: int) -> None:
5151
"""
5252
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
5353
server.bind(("127.0.0.1", int(port)))
54-
server.listen(5)
54+
server.listen(64)
5555
#print(f"🔌 MAIN RPC: Listening on port {port}")
5656

5757
while True:

TBG/TBG_APP/TBG_APP-linux-3.10.so

584 KB
Binary file not shown.

TBG/TBG_APP/TBG_APP-linux-3.11.so

592 KB
Binary file not shown.

TBG/TBG_APP/TBG_APP-linux-3.12.so

640 KB
Binary file not shown.

TBG/TBG_APP/TBG_APP-linux-3.13.so

648 KB
Binary file not shown.

TBG/TBG_APP/TBG_APP-macos-3.10.so

417 KB
Binary file not shown.

TBG/TBG_APP/TBG_APP-macos-3.11.so

409 KB
Binary file not shown.

0 commit comments

Comments
 (0)