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

No module named 'diffusers.models.unet_2d_blocks' #86

Closed
158zd opened this issue Jun 14, 2024 · 1 comment · Fixed by #89
Closed

No module named 'diffusers.models.unet_2d_blocks' #86

158zd opened this issue Jun 14, 2024 · 1 comment · Fixed by #89

Comments

@158zd
Copy link

158zd commented Jun 14, 2024

Traceback (most recent call last):
File "D:\ai\stable-diffusion-webui\ComfyUI\nodes.py", line 1864, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\ai\stable-diffusion-webui\ComfyUI\custom_nodes\ComfyUI-layerdiffuse_init
.py", line 1, in
from .layered_diffusion import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "D:\ai\stable-diffusion-webui\ComfyUI\custom_nodes\ComfyUI-layerdiffuse\layered_diffusion.py", line 23, in
from .lib_layerdiffusion.models import TransparentVAEDecoder
File "D:\ai\stable-diffusion-webui\ComfyUI\custom_nodes\ComfyUI-layerdiffuse\lib_layerdiffusion\models.py", line 10, in
from diffusers.models.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block
ModuleNotFoundError: No module named 'diffusers.models.unet_2d_blocks'
image
Same issue after installing diffusers

@AkihaTatsu
Copy link

Diffusers package has moved unet_2d_blocks.py into the "diffusers/models/unets/" path instead of the former "diffusers/models/" path. Line 10 in "lib_layerdiffusion/models.py" should be changed from from diffusers.models.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block to from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block.

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

Successfully merging a pull request may close this issue.

2 participants