city96 / ComfyUI-GGUF

GGUF Quantization support for native ComfyUI models
Apache License 2.0
721 stars 41 forks source link

module 'comfy.sd' has no attribute 'load_diffusion_model_state_dict' #101

Open IntellectzProductions opened 1 week ago

IntellectzProductions commented 1 week ago

Error occurred when executing UnetLoaderGGUF:

module 'comfy.sd' has no attribute 'load_diffusion_model_state_dict'

File "J:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "J:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\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 "J:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "J:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF\nodes.py", line 259, in load_unet model = comfy.sd.load_diffusion_model_state_dict(

I do not understand why this error is happening. I can't update comfy any more than it is. If somebody can help with what is going on with this error.

city96 commented 1 week ago

The ComfyUI_windows_portable\update folder should have a filed called update_comfyui.bat - Does this one complete the update successfully or does it throw an error?

city96 commented 1 week ago

@al-swaiti This has nothing to do with updating an existing install. Please stop advertising your own guides and models in this repository.

city96 commented 1 week ago

@al-swaiti This issue is about the standalone install from the official repository, and your post doesn't mention anything about updating either the standalone or the manual version. Asking someone to reinstall just to update is unreasonable. A guide on how to update the standalone or troubleshoot issues would make more sense to link, but this just looks like you're advertising.

Your guide is mostly the the official guide from the ComfyUI repo + a step by step for how to install the manager. I don't think this is relevant to this repo/issue and there's already tons of different guides like it on the internet.

city96 commented 1 week ago

Checked, that bat file is present on latest standalone. It creates a backup of the current version and updates to latest.

image

2364814106 commented 4 days ago

this error also happened in my comfyui, it has been solved? help me, my god

2364814106 commented 4 days ago

my error is this:

Error occurred when executing DualCLIPLoaderGGUF:

module 'comfy.sd' has no attribute 'load_text_encoder_state_dicts'

File "D:\fooocus\ComfyUI-aki-v1.3\execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\fooocus\ComfyUI-aki-v1.3\execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) File "D:\fooocus\ComfyUI-aki-v1.3\execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "D:\fooocus\ComfyUI-aki-v1.3\execution.py", line 157, in process_inputs results.append(getattr(obj, func)(**inputs)) File "D:\fooocus\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF\nodes.py", line 305, in load_clip return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),) File "D:\fooocus\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF\nodes.py", line 264, in load_patcher clip = comfy.sd.load_text_encoder_state_dicts(

city96 commented 4 days ago

Well, on latest ComfyUI the "load_text_encoder_state_dicts" is present right here so all I can offer is the same advice as above about updating ComfyUI.

2364814106 commented 3 days ago

thank you very much, after update the comfyui, the error is solved, you are really Awesome!