Archived
cleaned up progress module
This commit is contained in:
1 parent
cfd568307a
commit
e440635426
1 file changed
+2
-10
+2
-10
@@ -3,7 +3,7 @@ import sys
|
||||
comfyui_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
|
||||
if comfyui_root not in sys.path:
|
||||
sys.path.insert(0, comfyui_root)
|
||||
|
||||
|
||||
from server import PromptServer
|
||||
from io import BytesIO
|
||||
from PIL import Image, ImageOps
|
||||
@@ -26,15 +26,7 @@ _is_broadcasting = False # Prevent infinite recursion
|
||||
|
||||
def patched_send_sync(event, data, sid=None):
|
||||
global _is_broadcasting
|
||||
|
||||
# Debug: Log what events we're seeing
|
||||
if event == 'progress':
|
||||
print(f"[ImageLab DEBUG] Intercepted 'progress' event: {data}")
|
||||
elif event == BinaryEventTypes.UNENCODED_PREVIEW_IMAGE:
|
||||
print(f"[ImageLab DEBUG] Intercepted UNENCODED_PREVIEW_IMAGE")
|
||||
elif event == BinaryEventTypes.PREVIEW_IMAGE_WITH_METADATA:
|
||||
print(f"[ImageLab DEBUG] Intercepted PREVIEW_IMAGE_WITH_METADATA")
|
||||
|
||||
|
||||
# Always call original first
|
||||
_original_send_sync(event, data, sid)
|
||||
|
||||
|
||||
Reference in new issue
Block a user