Kosinkadink / ComfyUI-Advanced-ControlNet

ControlNet scheduling and masking nodes with sliding context support
GNU General Public License v3.0
617 stars 61 forks source link

problem by SargeZT t2i-adapter-sdxl-multi #98

Open amir84ferdos opened 7 months ago

amir84ferdos commented 7 months ago

Hi, I was not able to use SargeZT t2i-adapter-sdxl-multi, would you please check it.

https://huggingface.co/SargeZT/t2i-adapter-sdxl-multi

amir84ferdos commented 7 months ago

this is the error: Error occurred when executing ControlNetLoaderAdvanced:

Error(s) in loading state_dict for Adapter: Missing key(s) in state_dict: "body.6.block1.weight", "body.6.block1.bias", "body.6.block2.weight", "body.6.block2.bias", "body.7.block1.weight", "body.7.block1.bias", "body.7.block2.weight", "body.7.block2.bias".

File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\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 "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\nodes.py", line 91, in load_controlnet controlnet = load_controlnet(controlnet_path, timestep_keyframe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet\adv_control\control.py", line 500, in load_controlnet control = comfy_cn.load_controlnet(ckpt_path, model=model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\comfy\controlnet.py", line 388, in load_controlnet net = load_t2i_adapter(controlnet_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\ComfyUI\comfy\controlnet.py", line 547, in load_t2i_adapter missing, unexpected = model_ad.load_state_dict(t2i_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Swarm2\StableSwarmUI\dlbackend\comfy\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 2153, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(