chaojie / ComfyUI-MuseV

MIT License
146 stars 14 forks source link

No module named 'xformers' #19

Open faiejir opened 6 months ago

faiejir commented 6 months ago

2024-04-30 02:51:59,540- root:1882- WARNING- Traceback (most recent call last): File "/data/zr/ComfyUI/nodes.py", line 1864, 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 "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/nodes.py", line 45, in from musev.models.facein_loader import load_facein_extractor_and_proj_by_name File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/facein_loader.py", line 45, in from .unet_loader import update_unet_with_sd File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/unet_loader.py", line 36, in from ..models.unet_3d_condition import UNet3DConditionModel File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/unet_3d_condition.py", line 72, in from .temporal_transformer import ( File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/temporal_transformer.py", line 44, in from .attention import BasicTransformerBlock File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/attention.py", line 38, in from .attention_processor import IPAttention, BaseIPAttnProcessor File "/data/zr/ComfyUI/custom_nodes/ComfyUI-MuseV/musev/models/attention_processor.py", line 32, in import xformers ModuleNotFoundError: No module named 'xformers' How to fix it?

niffelheim87 commented 3 months ago

pip install -U xformers, beware of torch version compatibility with xformers, for me, torch 2.3.1 -> xformers=0.0.27