StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
399 stars 25 forks source link

This modeling file requires the following packages that were not found in your environment: flash_attn. Run `pip install flash_attn` #91

Open mr-bob-chang opened 1 week ago

mr-bob-chang commented 1 week ago

大佬,运行CXH_DownloadAndLoadFlorence2Model这个节点会报错,说是缺少flash_attn这个东西。

ComfyUI Error Report

Error Details

然后我用pip install flash_attn安装这个环境,得到了下面的报错

C:\Users\Hard_Core>pip install flash_attn Collecting flash_attn Using cached flash_attn-2.6.3.tar.gz (2.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output] Traceback (most recent call last): File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires self.run_setup() File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 516, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup exec(code, locals()) File "", line 21, in ModuleNotFoundError: No module named 'torch' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

请问这个是怎么回事呢?

liutianping commented 1 week ago

Windows系统的话,显卡要30系以上才能装。20系的显卡是图灵架构,在Windows不支持flash_attn。

mr-bob-chang commented 1 week ago

Windows系统的话,显卡要30系以上才能装。20系的显卡是图灵架构,在Windows不支持flash_attn。

我的显卡是4090