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

module 'comfy.model_management' has no attribute 'unload_model_clones' #115

Closed
jackqn opened this issue Dec 17, 2024 · 9 comments · Fixed by #119
Closed

module 'comfy.model_management' has no attribute 'unload_model_clones' #115

jackqn opened this issue Dec 17, 2024 · 9 comments · Fixed by #119
Assignees
Labels
bug Something isn't working

Comments

@jackqn
Copy link

jackqn commented Dec 17, 2024

I obtained the correct results when using the SDXL model
When I was using the 1.5 model, an error occurred
module 'comfy.model_management' has no attribute 'unload_model_clones'
got prompt
!!! Exception during processing !!! module 'comfy.model_management' has no attribute 'unload_model_clones'
Traceback (most recent call last):
File "G:\jack\ComfyUI\execution.py", line 328, 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 "G:\jack\ComfyUI\execution.py", line 203, 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 "G:\jack\ComfyUI\execution.py", line 174, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\jack\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\jack\ComfyUI\custom_nodes\ComfyUI-layerdiffuse\layered_diffusion.py", line 362, in apply_layered_diffusion
return ld_model.apply_layered_diffusion_attn_sharing(model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\jack\ComfyUI\custom_nodes\ComfyUI-layerdiffuse\layered_diffusion.py", line 288, in apply_layered_diffusion_attn_sharing
patcher = AttentionSharingPatcher(
^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\jack\ComfyUI\custom_nodes\ComfyUI-layerdiffuse\lib_layerdiffusion\attention_sharing.py", line 330, in init
model_management.unload_model_clones(unet)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'comfy.model_management' has no attribute 'unload_model_clones'

@GeminiSquishGames
Copy link

Same here. It seemed to work fine a few updates ago but my workflows for 1.5 are broken.

@sjsdwwy
Copy link

sjsdwwy commented Dec 20, 2024

这里也是一样。几次更新前它似乎运行良好,但我的 1.5 工作流程坏了。

Is it solved? I also reported the same error.

@learningbetter
Copy link

me too

@huchenlei
Copy link
Owner

Confirmed broken by comfyanonymous/ComfyUI#5450

@GeminiSquishGames
Copy link

I'm still getting the error. I'll have to open a new issue I guess.

@Xiaoxian3570
Copy link

Hey buddy, so what's the situation now? I have the same problem too!

Image

@Xiaoxian3570
Copy link

So I didn't update haha, it seems like I've already solved it
nice!!!
Image

Image

@Xiaoxian3570
Copy link

It's strange, I encountered another problem. I just changed the dog to a girl, and he made an error. When it was a dog in front of me, he wouldn't make an error!!??
Image

Image

@Xiaoxian3570
Copy link

I know how to solve it, but it's troublesome. I can't change keywords on a workflow that is already working properly, otherwise it will cause errors. Every time I need to change keywords, I need to build a new workflow to avoid errors,
What I mean is that this workflow is one-time He can only work on one prompt word and cannot modify it!
Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants