Open slmonker opened 1 day ago
I think there may be a line missing in this file: /hyvideo/modules /attention.py
.
Just add sageattn_varlen_func = None
before the try
at the beginning of the file.
try:
from flash_attn.flash_attn_interface import flash_attn_varlen_func
except ImportError:
flash_attn_varlen_func = None
sageattn_varlen_func = None #THE MISSING LINE
try:
from sageattention import sageattn_varlen
@torch.compiler.disable()
def sageattn_varlen_func(
I think there may be a line missing in this file:
/hyvideo/modules /attention.py
. Just addsageattn_varlen_func = None
before thetry
at the beginning of the file.try: from flash_attn.flash_attn_interface import flash_attn_varlen_func except ImportError: flash_attn_varlen_func = None sageattn_varlen_func = None #THE MISSING LINE try: from sageattention import sageattn_varlen @torch.compiler.disable() def sageattn_varlen_func(
ok i will give a shot
I just realized that your issue may be different from the one I was having. The error you got seems to be related to the CUDA utilities and triton.
You could maybe try removing and adding triton:
pip uninstall triton sageattention -y
pip install triton --no-cache-dir
pip install sageattention --no-cache-dir
I just realized that your issue may be different from the one I was having. The error you got seems to be related to the CUDA utilities and triton.
You could maybe try removing and adding triton:
pip uninstall triton sageattention -y pip install triton --no-cache-dir pip install sageattention --no-cache-dir
ok,thanks
It doesn't currently work without flash_attn or sageattention, both are somewhat challenging to install on Windows. This error is from incomplete or missing Triton installation that sageattention uses.
It doesn't currently work without flash_attn or sageattention, both are somewhat challenging to install on Windows. This error is from incomplete or missing Triton installation that sageattention uses.
It's working with flash-attn(luckily i installed it b4),but the result is kind of horrible……
Use the manual from purz. https://purz.notion.site/Get-Windows-Triton-working-for-Mochi-6a0c055e21c84cfba7f1dd628e624e97 Works for me with sageattn. I use pytorch version: 2.5.1+cu124
ComfyUI Error Report
Error Details
Exception Message: Command '['C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.EXE', 'C:\Users\ADMINI~1\AppData\Local\Temp\tmpnpldo08z\main.c', '/nologo', '/O2', '/LD', '/wd4819', '/ID:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends\nvidia\include', '/IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include', '/IC:\Users\ADMINI~1\AppData\Local\Temp\tmpnpldo08z', '/ID:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Include', '/IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt', '/IC:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um', '/link', '/LIBPATH:D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\Lib\site-packages\triton\backends\nvidia\lib', '/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64', '/LIBPATH:D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\libs', '/LIBPATH:D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\libs', '/LIBPATH:C:\Python311\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64', '/LIBPATH:D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\libs', '/LIBPATH:D:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\libs', '/LIBPATH:C:\Python311\libs', '/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\lib\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x64', '/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64', 'cuda.lib', '/OUT:C:\Users\ADMINI~1\AppData\Local\Temp\tmpnpldo08z\cuda_utils.cp311-win_amd64.pyd']' returned non-zero exit status 2.
Stack Trace
2024-12-04T01:40:06.660661 - [1mFrom Bmad Custom Nodes[0m2024-12-04T01:40:06.660661 - 2024-12-04T01:40:06.662661 - [92mLoaded 124 nodes:2024-12-04T01:40:06.662661 - 2024-12-04T01:40:06.662661 - + api nodes (14)2024-12-04T01:40:06.663637 - 2024-12-04T01:40:06.663637 - + simple utility nodes (58)2024-12-04T01:40:06.663637 - 2024-12-04T01:40:06.663637 - + CV nodes (50)2024-12-04T01:40:06.663637 - 2024-12-04T01:40:06.663637 - + extension dependent nodes (2)2024-12-04T01:40:06.664637 - 2024-12-04T01:40:06.664637 - [93mNot loaded:2024-12-04T01:40:06.664637 - 2024-12-04T01:40:06.664637 - * color clip ade20k node2024-12-04T01:40:06.664637 - 2024-12-04T01:40:06.665637 - [91mProblems:2024-12-04T01:40:06.665637 - 2024-12-04T01:40:06.665637 - ! No module named 'gray2color'2024-12-04T01:40:06.665637 - 2024-12-04T01:40:06.665637 - [0m2024-12-04T01:40:06.665637 - 2024-12-04T01:40:06.720638 - ------------------------------------------2024-12-04T01:40:06.720638 - 2024-12-04T01:40:06.721638 - [34mComfyroll Studio v1.76 : [92m 175 Nodes Loaded[0m2024-12-04T01:40:06.722637 - 2024-12-04T01:40:06.722637 - ------------------------------------------2024-12-04T01:40:06.722637 - 2024-12-04T01:40:06.722637 - For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2024-12-04T01:40:06.728637 - 2024-12-04T01:40:06.729637 - For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2024-12-04T01:40:06.729637 - 2024-12-04T01:40:06.729637 - ------------------------------------------2024-12-04T01:40:06.729637 - 2024-12-04T01:40:06.753637 - [1;35m### [START] ComfyUI AlekPet Nodes [1;34mv1.0.34[0m[1;35m ###[0m2024-12-04T01:40:06.753637 - 2024-12-04T01:40:07.748054 - [92mNode -> ChatGLMNode: [93mChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode[0m [92m[Loading] [0m2024-12-04T01:40:07.749053 - 2024-12-04T01:40:07.757053 - [92mNode -> ArgosTranslateNode: [93mArgosTranslateCLIPTextEncodeNode, ArgosTranslateTextNode[0m [92m[Loading] [0m2024-12-04T01:40:07.757053 - 2024-12-04T01:40:07.766054 - [92mNode -> DeepTranslatorNode: [93mDeepTranslatorCLIPTextEncodeNode, DeepTranslatorTextNode[0m [92m[Loading] [0m2024-12-04T01:40:07.766054 - 2024-12-04T01:40:07.772053 - [92mNode -> GoogleTranslateNode: [93mGoogleTranslateCLIPTextEncodeNode, GoogleTranslateTextNode[0m [92m[Loading] [0m2024-12-04T01:40:07.776053 - 2024-12-04T01:40:07.783053 - [92mNode -> ExtrasNode: [93mPreviewTextNode, HexToHueNode, ColorsCorrectNode[0m [92m[Loading] [0m2024-12-04T01:40:07.796054 - 2024-12-04T01:40:07.832053 - [92mNode -> PoseNode: [93mPoseNode[0m [92m[Loading] [0m2024-12-04T01:40:07.844054 - 2024-12-04T01:40:07.995193 - [92mNode -> IDENode: [93mIDENode[0m [92m[Loading] [0m2024-12-04T01:40:07.995193 - 2024-12-04T01:40:08.542693 - [92mNode -> PainterNode: [93mPainterNode[0m [92m[Loading] [0m2024-12-04T01:40:08.542693 - 2024-12-04T01:40:08.543693 - [1;35m### [END] ComfyUI AlekPet Nodes ###[0m2024-12-04T01:40:08.543693 - 2024-12-04T01:40:10.386126 - missing pkgs2024-12-04T01:40:10.386126 - 2024-12-04T01:40:10.387126 - []2024-12-04T01:40:10.387126 - 2024-12-04T01:40:10.439126 - # 😺dzNodes: LayerStyle -> [1;33mCannot import name 'guidedFilter' from 'cv2.ximgproc' A few nodes cannot works properly, while most nodes are not affected. Please REINSTALL package 'opencv-contrib-python'. For detail refer to [4mhttps://github.com/chflame163/ComfyUI_LayerStyle/issues/5[0m[m2024-12-04T01:40:10.440125 - 2024-12-04T01:40:11.876105 - [36;20m[comfy_mtb] | INFO -> loaded [96m90[0m nodes successfuly[0m 2024-12-04T01:40:11.894770 - FaceDetailer: Model directory already exists2024-12-04T01:40:11.894770 - 2024-12-04T01:40:11.895288 - FaceDetailer: Model already exists2024-12-04T01:40:11.895809 - 2024-12-04T01:40:11.985920 - 2024-12-04T01:40:11.985920 - [92m[rgthree-comfy] Loaded 42 fantastic nodes. 🎉[00m2024-12-04T01:40:11.986920 - 2024-12-04T01:40:11.986920 - 2024-12-04T01:40:12.008919 - Please 'pip install apex'2024-12-04T01:40:12.008919 - 2024-12-04T01:40:12.123453 - [34mWAS Node Suite: [0mBlenderNeko's Advanced CLIP Text Encode found, attempting to enable
CLIPTextEncode
support.[0m2024-12-04T01:40:12.123453 - 2024-12-04T01:40:12.124117 - [34mWAS Node Suite: [0mCLIPTextEncode (BlenderNeko Advanced + NSP)
node enabled underWAS Suite/Conditioning
menu.[0m2024-12-04T01:40:12.124117 - 2024-12-04T01:40:13.056540 - [34mWAS Node Suite: [0mOpenCV Python FFMPEG support is enabled[0m2024-12-04T01:40:13.056540 - 2024-12-04T01:40:13.056540 - [34mWAS Node Suite [93mWarning: [0mffmpeg_bin_path
is not set inD:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json
config file. Will attempt to use system ffmpeg binaries if available.[0m2024-12-04T01:40:13.057541 - 2024-12-04T01:40:13.774887 - [34mWAS Node Suite: [0mFinished.[0m [32mLoaded[0m [0m219[0m [32mnodes successfully.[0m2024-12-04T01:40:13.774887 - 2024-12-04T01:40:13.774887 - [3m[93m"Art is not freedom from discipline, but disciplined freedom."[0m[3m - John F. Kennedy[0m 2024-12-04T01:40:13.775888 - 2024-12-04T01:40:13.791887 -