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

ImportError: cannot import name 'lcm' from 'comfy.samplers' #409

Open
song2daodao opened this issue Dec 26, 2024 · 0 comments
Open

ImportError: cannot import name 'lcm' from 'comfy.samplers' #409

song2daodao opened this issue Dec 26, 2024 · 0 comments

Comments

@song2daodao
Copy link

Using pytorch attention
Traceback (most recent call last):
File "/home/ooin/workspace/ComfyUI/nodes.py", line 2075, 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 "/home/ooin/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/init.py", line 2, in
from .animatediff.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/home/ooin/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/nodes.py", line 22, in
from .sampling import animatediff_sample_factory
File "/home/ooin/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved/animatediff/sampling.py", line 9, in
from comfy.samplers import lcm
ImportError: cannot import name 'lcm' from 'comfy.samplers' (/home/ooin/workspace/ComfyUI/comfy/samplers.py)

Cannot import /home/ooin/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved module for custom nodes: cannot import name 'lcm' from 'comfy.samplers' (/home/ooin/workspace/ComfyUI/comfy/samplers.py)
Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success!
Efficiency Nodes: Attempting to add 'AnimatedDiff Script' Node (ComfyUI-AnimateDiff-Evolved add-on)...Failed!
Traceback (most recent call last):
File "/home/ooin/workspace/ComfyUI/nodes.py", line 2075, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1016, in get_code
File "", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/home/ooin/workspace/ComfyUI/custom_nodes/models/init.py'

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

1 participant