ComfyUI
ComfyUI copied to clipboard
comfy_extras/ nodes did not import correctly
_```
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.
They are built-in nodes.
ComfyUI/requirements.txt
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!
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!