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

AttributeError: module 'comfy.model_base' has no attribute 'SDXL_instructpix2pix' #3236

Open
zhuhanyuan opened this issue Apr 10, 2024 · 20 comments

Comments

@zhuhanyuan
Copy link

!!! Exception during processing !!!
Traceback (most recent call last):
File "/Users/zhudigi/AItools/ComfyUI-master/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zhudigi/AItools/ComfyUI-master/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zhudigi/AItools/ComfyUI-master/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/zhudigi/AItools/ComfyUI-master/custom_nodes/ComfyUI_IPAdapter_plus/IPAdapterPlus.py", line 436, in load_models
is_sdxl = isinstance(model.model, (comfy.model_base.SDXL, comfy.model_base.SDXLRefiner, comfy.model_base.SDXL_instructpix2pix))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'comfy.model_base' has no attribute 'SDXL_instructpix2pix'

@zhuhanyuan
Copy link
Author

Can not update the version as well, cpu is APPLE M1
Screenshot 2024-04-10 at 22 30 06

@originalpaul
Copy link

Screenshot 2024-04-11 at 12 30 08 PM

Same error for me, also on Apple M1.

@datuizhuang
Copy link

same error

@BitReign
Copy link

Same on Win i9

@superadi04
Copy link

same here

@zhuhanyuan
Copy link
Author

Just update comfyUI, everything will be OK!

@BitReign
Copy link

Just update comfyUI, everything will be OK!

Updating all via manager solved my issue. Thanks.

@X3lnThpi
Copy link

@BitReign is right, thanks man.

@DING03015
Copy link

"ComfyUI is already up to date with the latest version.", but AttributeError still occurs: module 'comfy.model_base' has no attribute 'SDXL_instructpix2pix'
I'd like to ask if there are any other ways
截屏2024-05-08 10 05 30
截屏2024-05-08 10 24 04

@ltdrdata
Copy link
Contributor

ltdrdata commented May 8, 2024

SDXL_instructpix2pix

goto ComfyUI dir in cmd and execute this.

git status

What is displayed?

And check this command as well.

git log

@DING03015
Copy link

SDXL_instructpix2pix

在 cmd 中转到 ComfyUI 目录并执行此命令。

git status

显示什么?

并检查此命令。

git log

Execute git status in the comfyUI directory
display:
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
modified: extra_model_paths.yaml.example

Untracked files:
(use "git add ..." to include in what will be committed)
.DS_Store
comfy/.DS_Store
comfy/ldm/.DS_Store
comfy_extras/.DS_Store
comfy_extras/chainner_models/.DS_Store
comfy_extras/chainner_models/architecture/.DS_Store
comfyui.log
comfyui.prev.log
comfyui.prev2.log
node_helpers.py
tests-ui/.DS_Store
tests/.DS_Store
web/.DS_Store

no changes added to commit (use "git add" and/or "git commit -a")

Then enter the command git log
display:
commit d3406d8 (HEAD -> master, origin/master, origin/HEAD)
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Sun Mar 17 08:57:49 2024 -0400

Increase image batch nodes maximum values.

commit d7897ff
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Sat Mar 16 14:49:35 2024 -0400

Move cascade scale factor from stage_a to latent_formats.py

commit f2fe635
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Fri Mar 15 19:34:22 2024 -0400

SamplerDPMAdaptative node to test the different options.

commit 448d926
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Thu Mar 14 09:30:21 2024 -0400

Fix control loras breaking.

commit db8b59e
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Wed Mar 13 19:04:41 2024 -0400

Lower memory usage for loras in lowvram mode at the cost of perf.

commit eda8704
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Tue Mar 12 12:16:37 2024 -0400

Add SamplerDPMPP_3M_SDE node.

commit e7b8e24
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Tue Mar 12 04:34:34 2024 -0400

Add SamplerLMS node.

commit 2a813c3
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Mon Mar 11 16:24:47 2024 -0400

Switch some more prints to logging.

:

@ltdrdata
Copy link
Contributor

ltdrdata commented May 8, 2024

It seems that updating failed due to your ComfyUI file is modified.
(The dialog message should be patched)

Just execute this.

git checkout extra_model_paths.yaml.example
git pull

I want to mention this to others as well:
Several guide documents suggest that you should modify the extra_model_paths.yaml.example file, but you should not do that.

Do not rename and modify the extra_model_paths.yaml.example file; you should copy it and then make modifications to the copy.

@DING03015
Copy link

由于您的 ComfyUI 文件被修改,更新似乎失败。 (应该修补对话框消息)

只需执行这个即可。

git checkout extra_model_paths.yaml.example
git pull

Thank you very much for your reply
After executing the command, it displays
Updated 1 path from the index
Already up to date.

Then restart comfyUI. After clicking, AttributeError is still displayed: module 'comfy.model_base' has no attribute 'SDXL_instructpix2pix'

@DING03015
Copy link

由于您的 ComfyUI 文件被修改,更新似乎失败。 (修复应该对话框消息)

执行这个即可。

git checkout extra_model_paths.yaml.example
git pull

After closing comfyUI, I just reentered the command -git status
display:
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
(use "git add ..." to include in what will be committed)
.DS_Store
comfy/.DS_Store
comfy/ldm/.DS_Store
comfy_extras/.DS_Store
comfy_extras/chainner_models/.DS_Store
comfy_extras/chainner_models/architecture/.DS_Store
comfyui.log
comfyui.prev.log
comfyui.prev2.log
node_helpers.py
tests-ui/.DS_Store
tests/.DS_Store
web/.DS_Store

nothing added to commit but untracked files present (use "git add" to track)

@ltdrdata
Copy link
Contributor

ltdrdata commented May 8, 2024

由于您的 ComfyUI 文件被修改,更新似乎失败。 (修复应该对话框消息)
执行这个即可。

git checkout extra_model_paths.yaml.example
git pull

After closing comfyUI, I just reentered the command -git status display: On branch master Your branch is up to date with 'origin/master'.

Untracked files: (use "git add ..." to include in what will be committed) .DS_Store comfy/.DS_Store comfy/ldm/.DS_Store comfy_extras/.DS_Store comfy_extras/chainner_models/.DS_Store comfy_extras/chainner_models/architecture/.DS_Store comfyui.log comfyui.prev.log comfyui.prev2.log node_helpers.py tests-ui/.DS_Store tests/.DS_Store web/.DS_Store

nothing added to commit but untracked files present (use "git add" to track)

huh... node_helpers.py should not exists in there.
remove node_helpers.py and git pull again.

And you need to execute git log to check up to date.

@DING03015
Copy link

由于您的 ComfyUI 文件被修改,更新似乎失败。 (修复应该对话框消息)
执行这个即可。

git checkout extra_model_paths.yaml.example
git pull

After closing comfyUI, I just reentered the command -git status display: On branch master Your branch is up to date with 'origin/master'.
Untracked files: (use "git add ..." to include in what will be committed) .DS_Store comfy/.DS_Store comfy/ldm/.DS_Store comfy_extras/.DS_Store comfy_extras/chainner_models/.DS_Store comfy_extras/chainner_models/architecture/.DS_Store comfyui.log comfyui.prev.log comfyui.prev2.log node_helpers.py tests-ui/.DS_Store tests/.DS_Store web/.DS_Store
nothing added to commit but untracked files present (use "git add" to track)

huh... node_helpers.py should not exists in there. remove node_helpers.py and git pull again.

And you need to execute git log to check up to date.

After deleting this file node_helpers.py and executing the command
display:
commit d3406d8 (HEAD -> master, origin/master, origin/HEAD)
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Sun Mar 17 08:57:49 2024 -0400

Increase image batch nodes maximum values.

commit d7897ff
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Sat Mar 16 14:49:35 2024 -0400

Move cascade scale factor from stage_a to latent_formats.py

commit f2fe635
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Fri Mar 15 19:34:22 2024 -0400

SamplerDPMAdaptative node to test the different options.

commit 448d926
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Thu Mar 14 09:30:21 2024 -0400

Fix control loras breaking.

commit db8b59e
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Wed Mar 13 19:04:41 2024 -0400

Lower memory usage for loras in lowvram mode at the cost of perf.

commit eda8704
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Tue Mar 12 12:16:37 2024 -0400

Add SamplerDPMPP_3M_SDE node.

commit e7b8e24
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Tue Mar 12 04:34:34 2024 -0400

Add SamplerLMS node.

commit 2a813c3
Author: comfyanonymous comfyanonymous@protonmail.com
Date: Mon Mar 11 16:24:47 2024 -0400

Switch some more prints to logging.

:

@ltdrdata
Copy link
Contributor

ltdrdata commented May 8, 2024

Did you execute git pull after remove it?
What is displayed when you are executing git pull.

@DING03015
Copy link

git log

git pull performed after deleting files
Executing git pull shows: Already up to date.
The last command executed is git log

@ltdrdata
Copy link
Contributor

ltdrdata commented May 8, 2024

git log

git pull performed after deleting files Executing git pull shows: Already up to date. The last command executed is git log

Your ComfyUI local repository is invalid. I recommend removing it and re-cloning it.

@DING03015
Copy link

git 日志

删除文件后执行 git pull 执行 git pull 显示:已经是最新的。最后执行的命令是 git log

您的 ComfyUI 本地存储库无效。我建议删除它并重新克隆它。

Okay, I'll try it, thank you for your help

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

8 participants