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

cannot import name 'normalization #2

Open
ffdown opened this issue Feb 6, 2024 · 3 comments
Open

cannot import name 'normalization #2

ffdown opened this issue Feb 6, 2024 · 3 comments

Comments

@ffdown
Copy link

ffdown commented Feb 6, 2024

Traceback (most recent call last):
File "E:\AI\ComfyUI\nodes.py", line 1893, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\AI\ComfyUI\custom_nodes\Comfyui-StableSR_init
.py", line 15, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "E:\AI\ComfyUI\custom_nodes\Comfyui-StableSR\nodes.py", line 15, in
import stablesr
File "E:\AI\ComfyUI\custom_nodes\Comfyui-StableSR\modules\stablesr.py", line 56, in
from spade import SPADELayers
File "E:\AI\ComfyUI\custom_nodes\Comfyui-StableSR\modules\spade.py", line 10, in
from ldm.modules.diffusionmodules.util import normalization, checkpoint
ImportError: cannot import name 'normalization' from 'ldm.modules.diffusionmodules.util' (E:\AI\ComfyUI\comfy\ldm\modules\diffusionmodules\util.py)

Cannot import E:\AI\ComfyUI\custom_nodes\Comfyui-StableSR module for custom nodes: cannot import name 'normalization' from 'ldm.modules.diffusionmodules.util' (E:\AI\ComfyUI\comfy\ldm\modules\diffusionmodules\util.py)

@thekitchenscientist
Copy link

You can get the missing functions from https://huggingface.co/spaces/multimodalart/latentdiffusion/raw/main/latent-diffusion/ldm/modules/diffusionmodules/util.py but then you will get the matmul error instead

@botnang
Copy link

botnang commented Feb 13, 2024

same issues.

image

@thekitchenscientist
Copy link

I ended up switching to the code base at https://github.com/cubiq/ComfyUI_InstantID this worked without any issues

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