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

import failed #249

Open
wj123-wj opened this issue Oct 12, 2024 · 2 comments
Open

import failed #249

wj123-wj opened this issue Oct 12, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@wj123-wj
Copy link

Author, I am having problems installing this plugin,Could you please help me,This is an error code
Traceback (most recent call last):
File "D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\nodes.py", line 2001, 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 "D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui-main_init
.py", line 9, in
from .efficiency_nodes import NODE_CLASS_MAPPINGS
File "D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui-main\efficiency_nodes.py", line 403, in
class TSC_KSampler:
File "D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui-main\efficiency_nodes.py", line 404, in TSC_KSampler
empty_image = pil2tensor(Image.new('RGBA', (1, 1), (0, 0, 0, 0)))
File "D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui-main\tsc_utils.py", line 83, in pil2tensor
return torch.from_numpy(np.array(image).astype(np.float32) / 255.0).unsqueeze(0)
TypeError: expected np.ndarray (got numpy.ndarray)

Cannot import D:\ComfyUI-aki-v1.3\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui-main module for custom nodes: expected np.ndarray (got numpy.ndarray)
Patching UNetModel.forward

@jags111 jags111 self-assigned this Oct 16, 2024
@jags111 jags111 added the documentation Improvements or additions to documentation label Oct 16, 2024
@jags111
Copy link
Owner

jags111 commented Oct 16, 2024

Hai. I don't have this file --efficiency-nodes-comfyui-main_init.py .. so check which one is throwing this error. It is caused by numpy and you have a version mismatch.

@michaeisz
Copy link

Author, I am also having problems installing this plugin,Could you please help me,This is an error code
Traceback (most recent call last):
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui_init
.py", line 1, in
from .efficiency_nodes import NODE_CLASS_MAPPINGS
File "C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 46, in
from .py import smZ_cfg_denoiser
File "C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui\py\smZ_cfg_denoiser.py", line 7, in
from comfy.samplers import KSampler, CompVisVDenoiser, KSamplerX0Inpaint
ImportError: cannot import name 'CompVisVDenoiser' from 'comfy.samplers' (C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py)

Cannot import C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui module for custom nodes: cannot import name 'CompVisVDenoiser' from 'comfy.samplers' (C:\ComfyUI_windows_portable_nvidia (1)\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py)

thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants