comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
56.06k stars 5.93k forks source link

Error using T2I adapter SDXL #1556

Closed PLoic closed 1 year ago

PLoic commented 1 year ago

Hello, When I'm trying to execute this workflow : image

I'm facing this issue :

Error occurred when executing ControlNetApply:

'NoneType' object has no attribute 'copy'

File "/opt/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/opt/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/opt/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/opt/ComfyUI/nodes.py", line 618, in apply_controlnet
c_net = control_net.copy().set_cond_hint(control_hint, strength)

Am I doing it right ? Or is it only for control net ? I'm trying to use this T2I Adapter : https://huggingface.co/TencentARC/t2i-adapter-openpose-sdxl-1.0

Thanks

PLoic commented 1 year ago

Might be related to #1236

wcurti commented 1 year ago

Did you mean to use the (diff) version of the ControlNet loader?

comfyanonymous commented 1 year ago

Works fine here, make sure your comfyui is updated.

PLoic commented 1 year ago

I've updated comfy and I have a new error :

image image

PLoic commented 1 year ago

I have downgraded pip install setuptools==59.8.0 and it seems to work

balpha commented 1 year ago

Just for anyone who (like me) ends up here because they're running into the OP issue with https://github.com/AbdBarho/stable-diffusion-webui-docker: That project's dockerfile is pinned to an older version of ComfyUI. Changing it to pull latest made T2i adapters work fine for me with SDXL.

(And while I'm here, thank you @comfyanonymous for an amazing project!)