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

'ModelPatcher' object has no attribute 'get_model_object' #27

Open
uxyz-yang opened this issue Apr 24, 2024 · 9 comments
Open

'ModelPatcher' object has no attribute 'get_model_object' #27

uxyz-yang opened this issue Apr 24, 2024 · 9 comments

Comments

@uxyz-yang
Copy link

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")
@JettHu
Copy link
Collaborator

JettHu commented Apr 24, 2024

have you try update your comfyui version

@uxyz-yang
Copy link
Author

Yes, my comfy version is the latest one

@JettHu
Copy link
Collaborator

JettHu commented Apr 24, 2024

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

@uxyz-yang
Copy link
Author

It is exactly the same:

image

@JettHu
Copy link
Collaborator

JettHu commented Apr 24, 2024

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.

@uxyz-yang
Copy link
Author

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.

@JettHu
Copy link
Collaborator

JettHu commented Apr 25, 2024

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!

@rekgp
Copy link

rekgp commented Apr 25, 2024

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.

@uxyz-yang
Copy link
Author

uxyz-yang commented Apr 29, 2024

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

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