Skip to content

ImportError: cannot import name 'ADDED_KV_ATTENTION_PROCESSORS' #21

@chlowden

Description

@chlowden

Hello
Would you have an idea why I am getting the error below when starting up comfy UI with conda please?
Many thanks

`Torch version: 2.0.1+cu117
2024-01-09 09:13:30.296155: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-01-09 09:13:30.296191: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-01-09 09:13:30.296204: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
Traceback (most recent call last):
File "/home/admin/ComfyUI/nodes.py", line 1810, 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/admin/ComfyUI/custom_nodes/ComfyUI-MagicAnimate/init.py", line 16, in
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "/home/admin/ComfyUI/custom_nodes/ComfyUI-MagicAnimate/nodes.py", line 15, in
from magicanimate.models.appearance_encoder import AppearanceEncoderModel
File "/home/admin/ComfyUI/custom_nodes/ComfyUI-MagicAnimate/libs/magicanimate/models/appearance_encoder.py", line 31, in
from diffusers.models.attention_processor import (
ImportError: cannot import name 'ADDED_KV_ATTENTION_PROCESSORS' from 'diffusers.models.attention_processor' (/home/admin/anaconda3/envs/automatic/lib/python3.10/site-packages/diffusers/models/attention_processor.py)

Cannot import /home/admin/ComfyUI/custom_nodes/ComfyUI-MagicAnimate module for custom nodes: cannot import name 'ADDED_KV_ATTENTION_PROCESSORS' from 'diffusers.models.attention_processor' (/home/admin/anaconda3/envs/automatic/lib/python3.10/site-packages/diffusers/models/attention_processor.py)
---------------------------------`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions