ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

comfy_extras/ nodes did not import correctly

Open Piscabo opened this issue 5 months ago • 4 comments

_```

WARNING: some comfy_extras/ nodes did not import correctly. This may be because they are missing some dependencies.

IMPORT FAILED: nodes_canny.py IMPORT FAILED: nodes_morphology.py

This issue might be caused by missing dependencies. Please do a: pip install -r requirements.txt

```_

But there is no req.txt to install for this directory.

Piscabo avatar Mar 07 '24 19:03 Piscabo

They are built-in nodes. ComfyUI/requirements.txt

ltdrdata avatar Mar 08 '24 04:03 ltdrdata

Found here through Google, I have solved the same error, which is caused by the lack of flash-attention. It is really not in the requirements.txt. You could to go to https://github.com/bdashore3/flash-attention/releases , install a wheel that matches your version of torch and Cuda

For example (Just an example, version may not match yours): pip install https://github.com/bdashore3/flash-attention/releases/download/v2.5.6/flash_attn-2.5.6+cu122torch2.2.2cxx11abiFALSE-cp311-cp311-win_amd64.whl

hope that useful to you

Also say hello to ltdrdata here in the post, thanks for your nodes and tutorials they are great!

Packsod avatar Apr 06 '24 20:04 Packsod

Thanks for @Packsod's inspiration.

I am a Linux user, I used the installation method in https://github.com/Dao-AILab/flash-attention to install flash-attention manually, and finally my error was successfully solved!

Thanks again!

HSJDZNM avatar Apr 27 '24 11:04 HSJDZNM