Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: argument of type 'NoneType' is not iterable #65

Open
chaorenai opened this issue Aug 1, 2024 · 4 comments
Open

TypeError: argument of type 'NoneType' is not iterable #65

chaorenai opened this issue Aug 1, 2024 · 4 comments

Comments

@chaorenai
Copy link

What comes up when you are using the official ControlNet model:

Traceback (most recent call last):
File "D:\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\nodes.py", line 720, in load_controlnet
controlnet = comfy.controlnet.load_controlnet(controlnet_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\comfy\controlnet.py", line 384, in load_controlnet
diffusers_keys = comfy.utils.unet_to_diffusers(controlnet_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ComfyUI\comfy\utils.py", line 188, in unet_to_diffusers
if "num_res_blocks" not in unet_config:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

Prompt executed in 24.43 seconds

@chaorenai
Copy link
Author

Is it a bug in the node? How can I use the official ControlNnet model?

@chaorenai
Copy link
Author

workflow_controlnet

Is there some problems with the official workflow, that it shows error messages all the time?

@wailovet
Copy link
Contributor

wailovet commented Aug 1, 2024

Reference: examples/workflow_official_controlnet.png

@xyr4life
Copy link

xyr4life commented Sep 3, 2024

I have met the same problem, is there any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants