mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-10 13:06:40 +08:00
even more simplfied
This commit is contained in:
parent
eb8b496b96
commit
32a7f4279b
@ -39,11 +39,8 @@ def get_images(ws, prompt):
|
|||||||
break #Execution is done
|
break #Execution is done
|
||||||
else:
|
else:
|
||||||
# If you want to be able to decode the binary stream for latent previews, here is how you can do it:
|
# If you want to be able to decode the binary stream for latent previews, here is how you can do it:
|
||||||
# event = struct.unpack(">I", out[:4])[0]
|
# bytesIO = BytesIO(out[8:])
|
||||||
# image_data = out[8:]
|
# preview_image = Image.open(bytesIO) # This is your preview in PIL image format, store it in a global
|
||||||
# if event == 1:
|
|
||||||
# bytesIO = BytesIO(image_data)
|
|
||||||
# preview_image = Image.open(bytesIO) # This is your preview in PIL image format, store it in a global
|
|
||||||
continue #previews are binary data
|
continue #previews are binary data
|
||||||
|
|
||||||
history = get_history(prompt_id)[prompt_id]
|
history = get_history(prompt_id)[prompt_id]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user