olegchomp / TDComfyUI

TouchDesigner interface for ComfyUI
134 stars 9 forks source link

Passing Image From TD to Comfy not working. #5

Closed Rakasis closed 7 months ago

Rakasis commented 7 months ago

TD version: 2022.33910 Comfy Version: Revision: 1754 [777f6b15] | Released on '2023-11-28'

Following the tutorial here: https://youtu.be/62eARh_gRhE

When feeding image from TD into Comfy I get the following error:

Error occurred when executing ETN_LoadImageBase64:

cannot identify image file <_io.BytesIO object at 0x0000028E890B84A0>

File "C:\Users\****\ComfyUI_windows_portable\ComfyUI\execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\****\ComfyUI_windows_portable\ComfyUI\execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\****\ComfyUI_windows_portable\ComfyUI\execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\****\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tooling-nodes\nodes.py", line 20, in load_image
img = Image.open(BytesIO(imgdata))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\****\ComfyUI_windows_portable\python_embeded\Lib\site-packages\PIL\Image.py", line 3305, in open
raise UnidentifiedImageError(msg)
olegchomp commented 7 months ago

Solved in discord