kijai / ComfyUI-HunyuanVideoWrapper

183 stars 5 forks source link

Command '['C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\cl.EXE' #1

Open slmonker opened 1 day ago

slmonker commented 1 day ago

ComfyUI Error Report

Error Details

## System Information
- **ComfyUI Version:** v0.3.6-7-gc1b92b7
- **Arguments:** ComfyUI\main.py --windows-standalone-build --fast
- **OS:** nt
- **Python Version:** 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
- **Embedded Python:** true
- **PyTorch Version:** 2.4.1+cu124
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4090 D : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 25756696576
  - **VRAM Free:** 7595560558
  - **Torch VRAM Total:** 17918066688
  - **Torch VRAM Free:** 1467682414

## Logs

2024-12-04T01:40:06.660661 - From Bmad Custom Nodes2024-12-04T01:40:06.660661 - 2024-12-04T01:40:06.662661 - Loaded 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 - Not 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 - Problems: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 - 2024-12-04T01:40:06.665637 - 2024-12-04T01:40:06.720638 - ------------------------------------------2024-12-04T01:40:06.720638 - 2024-12-04T01:40:06.721638 - Comfyroll Studio v1.76 :  175 Nodes Loaded2024-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 - ### [START] ComfyUI AlekPet Nodes v1.0.34 ###2024-12-04T01:40:06.753637 - 2024-12-04T01:40:07.748054 - Node -> ChatGLMNode: ChatGLM4TranslateCLIPTextEncodeNode, ChatGLM4TranslateTextNode [Loading] 2024-12-04T01:40:07.749053 - 2024-12-04T01:40:07.757053 - Node -> ArgosTranslateNode: ArgosTranslateCLIPTextEncodeNode, ArgosTranslateTextNode [Loading] 2024-12-04T01:40:07.757053 - 2024-12-04T01:40:07.766054 - Node -> DeepTranslatorNode: DeepTranslatorCLIPTextEncodeNode, DeepTranslatorTextNode [Loading] 2024-12-04T01:40:07.766054 - 2024-12-04T01:40:07.772053 - Node -> GoogleTranslateNode: GoogleTranslateCLIPTextEncodeNode, GoogleTranslateTextNode [Loading] 2024-12-04T01:40:07.776053 - 2024-12-04T01:40:07.783053 - Node -> ExtrasNode: PreviewTextNode, HexToHueNode, ColorsCorrectNode [Loading] 2024-12-04T01:40:07.796054 - 2024-12-04T01:40:07.832053 - Node -> PoseNode: PoseNode [Loading] 2024-12-04T01:40:07.844054 - 2024-12-04T01:40:07.995193 - Node -> IDENode: IDENode [Loading] 2024-12-04T01:40:07.995193 - 2024-12-04T01:40:08.542693 - Node -> PainterNode: PainterNode [Loading] 2024-12-04T01:40:08.542693 - 2024-12-04T01:40:08.543693 - ### [END] ComfyUI AlekPet Nodes ###2024-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 -> Cannot 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 https://github.com/chflame163/ComfyUI_LayerStyle/issues/52024-12-04T01:40:10.440125 - 2024-12-04T01:40:11.876105 - [comfy_mtb] | INFO -> loaded 90 nodes successfuly 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 - [rgthree-comfy] Loaded 42 fantastic nodes. 🎉2024-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 - WAS Node Suite: BlenderNeko's Advanced CLIP Text Encode found, attempting to enable CLIPTextEncode support.2024-12-04T01:40:12.123453 - 2024-12-04T01:40:12.124117 - WAS Node Suite: CLIPTextEncode (BlenderNeko Advanced + NSP) node enabled under WAS Suite/Conditioning menu.2024-12-04T01:40:12.124117 - 2024-12-04T01:40:13.056540 - WAS Node Suite: OpenCV Python FFMPEG support is enabled2024-12-04T01:40:13.056540 - 2024-12-04T01:40:13.056540 - WAS Node Suite Warning: ffmpeg_bin_path is not set in D:\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.2024-12-04T01:40:13.057541 - 2024-12-04T01:40:13.774887 - WAS Node Suite: Finished. Loaded 219 nodes successfully.2024-12-04T01:40:13.774887 - 2024-12-04T01:40:13.774887 - "Art is not freedom from discipline, but disciplined freedom." - John F. Kennedy 2024-12-04T01:40:13.775888 - 2024-12-04T01:40:13.791887 -

ymuhong commented 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(
slmonker commented 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(

ok i will give a shot

ymuhong commented 1 day ago

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
slmonker commented 1 day ago

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

kijai commented 1 day ago

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.

slmonker commented 1 day ago

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…… 31dded7320c5abbd6c46b40cde2f36b9

zejacky commented 8 hours ago

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