As posted on Reddit:
https://www.reddit.com/r/comfyui/comments/1arh2du/stable_cascade_working_yesterday_not_working/
Using this custom node:
ComfyUI-DiffusersStableCascade
With the workflow detailed here:
https://civitai.com/models/306016?modelVersionId=343529
Win10, 64GB RAM, 3090
The install went well. The workflow produces excellent images. I got embeddings to work. I couldn't figure out LoRAs. Started working on that today (after updating via ComfyUI Manager) and suddenly nothing works for Stable Cascade. So I went back to the original workflow from civitai, and that doesn't work either. Apparently changes have occurred in the stable cascade custom node that have changed parameters. I now see "SEGM_DETECTOR" has a red "X" next to it. (See image in original reddit post.)
I also get an error that pops up in a red box. (See code below.)
The linked reddit post above contains an image created with stable cascade and the Civitai workflow with prompt:
"A strawberry frog in a cranberry bog on a log in the fog."
I'd be grateful for ideas on how to fix this.
C
`Error occurred when executing DiffusersStableCascade:
Cannot load C:\Users\Chris.cache\huggingface\hub\models--stabilityai--stable-cascade\snapshots\f2a84281d6f8db3c757195dd0c9a38dbdea90bb4\decoder because embedding.1.weight expected shape tensor(..., device='meta', size=(320, 64, 1, 1)), but got torch.Size([320, 16, 1, 1]). If you want to instead overwrite randomly initialized weights, please make sure to pass both low_cpu_mem_usage=False
and ignore_mismatched_sizes=True
. For more information, see also: huggingface/diffusers#1619 (comment) as an example.
File "D:\work\ai\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\work\ai\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:\work\ai\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\work\ai\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\nodes.py", line 44, in process
self.decoder = StableCascadeDecoderPipeline.from_pretrained("stabilityai/stable-cascade", torch_dtype=torch.float16).to(device)
File "C:\Users\Chris\miniconda3\envs\sd\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "D:\work\ai\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers\src\diffusers\pipelines\pipeline_utils.py", line 1263, in from_pretrained
loaded_sub_model = load_sub_model(
File "D:\work\ai\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers\src\diffusers\pipelines\pipeline_utils.py", line 531, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
File "C:\Users\Chris\miniconda3\envs\sd\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "D:\work\ai\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers\src\diffusers\models\modeling_utils.py", line 669, in from_pretrained
unexpected_keys = load_model_dict_into_meta(
File "D:\work\ai\ComfyUI\custom_nodes\ComfyUI-DiffusersStableCascade\src\diffusers\src\diffusers\models\modeling_utils.py", line 154, in load_model_dict_into_meta
raise ValueError(`