Error when using cascade
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Hi.......
When I using cascade, error shows below.
I'm sure my comfyui is the latest and my models put in the right place.
It confuse me for a long time.
Thank you everyone!
Error occurred when executing UNETLoader:
'conv_in.weight'
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\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:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\nodes.py", line 814, in load_unet
model = comfy.sd.load_unet(unet_path)
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 607, in load_unet
model = load_unet_state_dict(sd)
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 580, in load_unet_state_dict
model_config = model_detection.model_config_from_diffusers_unet(sd)
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\model_detection.py", line 380, in model_config_from_diffusers_unet
unet_config = unet_config_from_diffusers_unet(state_dict)
File "D:\AI\ComfyUI_windows_portable_nvidia_cu118_or_cpu\ComfyUI_windows_portable\ComfyUI\comfy\model_detection.py", line 262, in unet_config_from_diffusers_unet
match["model_channels"] = state_dict["conv_in.weight"].shape[0]
Contributor guide
Research direction
Start in comfy/model_detection.py around unet_config_from_diffusers_unet at line 262, then trace the UNETLoader path through comfy/sd.py and nodes.py. Reproduce the Cascade model-loading failure and determine why the state dict lacks conv_in.weight; done means the reported Cascade workflow loads without the KeyError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100