ComfyUI-ELLA icon indicating copy to clipboard operation
ComfyUI-ELLA copied to clipboard

'ModelPatcher' object has no attribute 'get_model_object'

Open uxyz-yang opened this issue 1 year ago • 9 comments

Meeting an error when executing the basic example.

Error occurred when executing EllaApply:

'ModelPatcher' object has no attribute 'get_model_object'

File "/home/ubuntu/ComfyUI/execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/home/ubuntu/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 "/home/ubuntu/ComfyUI/execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/home/ubuntu/ComfyUI/custom_nodes/ComfyUI-ELLA/ella.py", line 161, in apply
model_sampling = model_clone.get_model_object("model_sampling")

uxyz-yang avatar Apr 24 '24 10:04 uxyz-yang

have you try update your comfyui version

JettHu avatar Apr 24 '24 10:04 JettHu

Yes, my comfy version is the latest one

uxyz-yang avatar Apr 24 '24 10:04 uxyz-yang

Check your comfyui code. There is this method in the comfyui repo

JettHu avatar Apr 24 '24 11:04 JettHu

It is exactly the same:

image

uxyz-yang avatar Apr 24 '24 11:04 uxyz-yang

I just tried it on comfyui and the problem did not occur. (comfyui commit-id: 27d5808fc491c7174abc6f407e7dc11c6a7a1ec0)

It seems that no one else has encountered it either. It may be damaged by other plug-ins.

JettHu avatar Apr 24 '24 11:04 JettHu

You are right, it works after randomly stopping half of the plugins.

I will update the conclusion here after figuring out what the culprit is.

uxyz-yang avatar Apr 25 '24 03:04 uxyz-yang

You are right, it works after randomly stopping half of the plugins.

I will update the conclusion here after figuring out what the culprit is.

Thanks!

JettHu avatar Apr 25 '24 06:04 JettHu

I encountered the same problem, but managed to resolve it. Steps that didn't help (in order):

  • Changing to native model loader included in comfyui (before that i was using model merge from Comfyroll)
  • Disabling unused extensions
  • Updating Comfyui

Resolved by:

  • Updating all extensions and comfyui using "Update ALL" option in Comfyui Manager

Custom nodes installed and enabled when the error stopped occurring:

I do not know what a standard way of documenting this sort of thing is, so I hope this can help anyone who encounters it. I have no idea what caused it, nor do I know how or why it was resolved.

rekgp avatar Apr 25 '24 17:04 rekgp

Resolved by:

  • Updating all extensions and comfyui using "Update ALL" option in Comfyui Manager

The same. I can't find the source of this problem.

Common plugins: ComfyUI Impact Pack ComfyUI's ControlNet Auxiliary Preprocessors Efficiency Nodes for ComfyUI Version 2.0+ WAS Node Suite Comfyroll Studio

uxyz-yang avatar Apr 29 '24 09:04 uxyz-yang