Comfy-Org / Comfy-Org/ComfyUI

ImportError: cannot import name 'CrossAttentionDoggettx' from 'comfy.ldm.modules.attention'

Open
#1,770 0 comments 1 reaction 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

I just got the latest branch of comfui, when restart, got the following errors

> Traceback (most recent call last):
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1734, 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 "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff\__init__.py", line 2, in
> from .animatediff.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff\animatediff\nodes.py", line 13, in
> from .motion_module import MotionWrapper
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff\animatediff\motion_module.py", line 8, in
> from comfy.ldm.modules.attention import (
> ImportError: cannot import name 'CrossAttentionDoggettx' from 'comfy.ldm.modules.attention' (C:\DEV\ComfyUI_windows_portable\ComfyUI\comfy\ldm\modules\attention.py)
>
> Cannot import C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff module for custom nodes: cannot import name 'CrossAttentionDoggettx' from 'comfy.ldm.modules.attention' (C:\DEV\ComfyUI_windows_portable\ComfyUI\comfy\ldm\modules\attention.py)
> Traceback (most recent call last):
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1734, 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 "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\__init__.py", line 2, in
> from .animatediff.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\nodes.py", line 18, in
> from .motion_module import InjectorVersion, eject_params_from_model, get_injected_mm_params, inject_params_into_model, load_motion_lora, load_motion_module
> File "C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved\animatediff\motion_module.py", line 7, in
> from comfy.ldm.modules.attention import CrossAttentionBirchSan, CrossAttentionDoggettx, CrossAttentionPytorch, FeedForward, CrossAttention, MemoryEfficientCrossAttention
> ImportError: cannot import name 'CrossAttentionBirchSan' from 'comfy.ldm.modules.attention' (C:\DEV\ComfyUI_windows_portable\ComfyUI\comfy\ldm\modules\attention.py)
>
> Cannot import C:\DEV\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved module for custom nodes: cannot import name 'CrossAttentionBirchSan' from 'comfy.ldm.modules.attention' (C:\DEV\ComfyUI_windows_portable\ComfyUI\comfy\ldm\modules\attention.py)

I found the class CrossAttentionDoggettx(nn.Module) and CrossAttentionBirchSan exist in former branch.
How to resolve the problem? back to older branch?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.