Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torch not compiled with CUDA enabled #5242

Open
xcccmoon opened this issue Oct 14, 2024 · 3 comments
Open

Torch not compiled with CUDA enabled #5242

xcccmoon opened this issue Oct 14, 2024 · 3 comments
Labels
Potential Bug User is reporting a bug. This should be tested.

Comments

@xcccmoon
Copy link

Expected Behavior

Torch not compiled with CUDA enabled,How to solve it

Actual Behavior

截屏2024-10-14 16 22 54

Steps to Reproduce

xlabs sampler error

Debug Logs

# ComfyUI Error Report
## Error Details
- **Node Type:** XlabsSampler
- **Exception Type:** AssertionError
- **Exception Message:** Torch not compiled with CUDA enabled
## Stack Trace

  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/x-flux-comfyui/nodes.py", line 361, in sampling
    if torch.cuda.is_bf16_supported():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 138, in is_bf16_supported
    device = torch.cuda.current_device()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 878, in current_device
    _lazy_init()

  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 305, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")

System Information

  • ComfyUI Version: v0.2.3-3-g6632365
  • Arguments: main.py
  • OS: posix
  • Python Version: 3.12.5 | packaged by Anaconda, Inc. | (main, Sep 12 2024, 13:22:57) [Clang 14.0.6 ]
  • Embedded Python: false
  • PyTorch Version: 2.4.1

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 68719476736
    • VRAM Free: 23922196480
    • Torch VRAM Total: 68719476736
    • Torch VRAM Free: 23922196480

Logs

2024-10-14 15:24:43,600 - root - INFO - Total VRAM 65536 MB, total RAM 65536 MB
2024-10-14 15:24:43,600 - root - INFO - pytorch version: 2.4.1
2024-10-14 15:24:43,600 - root - INFO - Set vram state to: SHARED
2024-10-14 15:24:43,600 - root - INFO - Device: mps
2024-10-14 15:24:44,084 - root - INFO - Using sub quadratic optimization for cross attention, if you have memory or speed issues try using: --use-split-cross-attention
2024-10-14 15:24:44,793 - root - INFO - [Prompt Server] web root: /Users/xxs/comfyUI/ComfyUI/web
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path checkpoints /Users/xxs/stable-diffusion-webui/models/Stable-diffusion
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path configs /Users/xxs/stable-diffusion-webui/models/Stable-diffusion
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path vae /Users/xxs/stable-diffusion-webui/models/VAE
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path loras /Users/xxs/stable-diffusion-webui/models/Lora
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path loras /Users/xxs/stable-diffusion-webui/models/LyCORIS
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path upscale_models /Users/xxs/stable-diffusion-webui/models/ESRGAN
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path upscale_models /Users/xxs/stable-diffusion-webui/models/RealESRGAN
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path upscale_models /Users/xxs/stable-diffusion-webui/models/SwinIR
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path embeddings /Users/xxs/stable-diffusion-webui/embeddings
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path hypernetworks /Users/xxs/stable-diffusion-webui/models/hypernetworks
2024-10-14 15:24:44,794 - root - INFO - Adding extra search path controlnet /Users/xxs/stable-diffusion-webui/extensions/sd-webui-controlnet/models
2024-10-14 15:24:48,513 - root - WARNING - Traceback (most recent call last):
  File "/Users/xxs/comfyUI/ComfyUI/nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/__init__.py", line 24, in <module>
    from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/nodes.py", line 5, in <module>
    from usdu_patch import usdu
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/usdu_patch.py", line 2, in <module>
    from repositories import ultimate_upscale as usdu
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/repositories/__init__.py", line 14, in <module>
    spec.loader.exec_module(ultimate_upscale)
  File "<frozen importlib._bootstrap_external>", line 991, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1128, in get_code
  File "<frozen importlib._bootstrap_external>", line 1186, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py'

2024-10-14 15:24:48,513 - root - WARNING - Cannot import /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main module for custom nodes: [Errno 2] No such file or directory: '/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main/repositories/ultimate_sd_upscale/scripts/ultimate-upscale.py'
2024-10-14 15:24:50,137 - root - WARNING - Traceback (most recent call last):
  File "/Users/xxs/comfyUI/ComfyUI/nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 991, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1128, in get_code
  File "<frozen importlib._bootstrap_external>", line 1186, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/__init__.py'

2024-10-14 15:24:50,137 - root - WARNING - Cannot import /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus module for custom nodes: [Errno 2] No such file or directory: '/Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus/__init__.py'
2024-10-14 15:24:50,140 - root - INFO - 
Import times for custom nodes:
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/websocket_image_save.py
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/AIGODLIKE-COMFYUI-TRANSLATION
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds (IMPORT FAILED): /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Inpaint-CropAndStitch
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyLiterals
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-WD14-Tagger
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui-tooling-nodes-main
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui-sixgod_prompt
2024-10-14 15:24:50,140 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui-inpaint-nodes-main
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-AdvancedLivePortrait
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_essentials
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds (IMPORT FAILED): /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_UltimateSDUpscale-main
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-GGUF
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus-main
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/x-flux-comfyui
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux
2024-10-14 15:24:50,141 - root - INFO -    0.0 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui_controlnet_aux-main
2024-10-14 15:24:50,141 - root - INFO -    0.1 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Manager-main
2024-10-14 15:24:50,141 - root - INFO -    0.1 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/rgthree-comfy
2024-10-14 15:24:50,141 - root - INFO -    0.2 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Easy-Use
2024-10-14 15:24:50,141 - root - INFO -    0.3 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Crystools
2024-10-14 15:24:50,141 - root - INFO -    0.6 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/comfyui_dagthomas-master
2024-10-14 15:24:50,141 - root - INFO -    0.6 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet
2024-10-14 15:24:50,141 - root - INFO -    0.9 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-PuLID-Flux
2024-10-14 15:24:50,141 - root - INFO -    2.4 seconds: /Users/xxs/comfyUI/ComfyUI/custom_nodes/ComfyUI-Impact-Pack
2024-10-14 15:24:50,141 - root - INFO - 
2024-10-14 15:24:50,147 - root - INFO - Starting server

2024-10-14 15:24:50,147 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-10-14 15:26:16,848 - root - INFO - got prompt
2024-10-14 15:26:16,978 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-10-14 15:26:16,978 - root - INFO - model_type EPS
2024-10-14 15:26:19,183 - root - INFO - Using split attention in VAE
2024-10-14 15:26:19,184 - root - INFO - Using split attention in VAE
2024-10-14 15:26:19,474 - root - INFO - Requested to load SD1ClipModel
2024-10-14 15:26:19,474 - root - INFO - Loading 1 new model
2024-10-14 15:26:19,476 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-10-14 15:26:20,252 - root - INFO - Requested to load SD1ClipModel
2024-10-14 15:26:20,252 - root - INFO - Loading 1 new model
2024-10-14 15:26:20,401 - root - INFO - Requested to load SD1ClipModel
2024-10-14 15:26:20,401 - root - INFO - Loading 1 new model
2024-10-14 15:26:20,545 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-10-14 15:26:20,623 - root - INFO - Requested to load BaseModel
2024-10-14 15:26:20,623 - root - INFO - Loading 1 new model
2024-10-14 15:26:21,690 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 15:27:47,367 - root - INFO - Requested to load AutoencoderKL
2024-10-14 15:27:47,367 - root - INFO - Loading 1 new model
2024-10-14 15:27:47,781 - root - INFO - loaded completely 0.0 319.11416244506836 True
2024-10-14 15:28:01,795 - root - INFO - Requested to load BaseModel
2024-10-14 15:28:01,795 - root - INFO - Loading 1 new model
2024-10-14 15:29:03,325 - root - INFO - Requested to load BaseModel
2024-10-14 15:29:03,325 - root - INFO - Loading 1 new model
2024-10-14 15:30:46,156 - root - INFO - Requested to load BaseModel
2024-10-14 15:30:46,156 - root - INFO - Loading 1 new model
2024-10-14 15:31:31,536 - root - INFO - Requested to load BaseModel
2024-10-14 15:31:31,536 - root - INFO - Loading 1 new model
2024-10-14 15:32:11,949 - root - INFO - Prompt executed in 355.10 seconds
2024-10-14 15:33:14,385 - root - INFO - got prompt
2024-10-14 15:33:14,416 - root - INFO - Requested to load BaseModel
2024-10-14 15:33:14,416 - root - INFO - Loading 1 new model
2024-10-14 15:33:15,136 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 15:34:41,429 - root - INFO - Requested to load BaseModel
2024-10-14 15:34:41,429 - root - INFO - Loading 1 new model
2024-10-14 15:35:37,242 - root - INFO - Requested to load BaseModel
2024-10-14 15:35:37,242 - root - INFO - Loading 1 new model
2024-10-14 15:36:29,103 - root - INFO - Requested to load BaseModel
2024-10-14 15:36:29,103 - root - INFO - Loading 1 new model
2024-10-14 15:37:11,160 - root - INFO - Requested to load BaseModel
2024-10-14 15:37:11,160 - root - INFO - Loading 1 new model
2024-10-14 15:37:55,137 - root - INFO - Prompt executed in 280.74 seconds
2024-10-14 15:38:32,512 - root - INFO - got prompt
2024-10-14 15:38:32,536 - root - INFO - Requested to load BaseModel
2024-10-14 15:38:32,536 - root - INFO - Loading 1 new model
2024-10-14 15:38:33,377 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 15:40:00,067 - root - INFO - Requested to load BaseModel
2024-10-14 15:40:00,067 - root - INFO - Loading 1 new model
2024-10-14 15:40:44,638 - root - INFO - Requested to load BaseModel
2024-10-14 15:40:44,638 - root - INFO - Loading 1 new model
2024-10-14 15:41:24,995 - root - INFO - Requested to load BaseModel
2024-10-14 15:41:24,995 - root - INFO - Loading 1 new model
2024-10-14 15:42:20,322 - root - INFO - Prompt executed in 227.80 seconds
2024-10-14 15:43:37,951 - root - INFO - got prompt
2024-10-14 15:43:37,983 - root - INFO - Requested to load BaseModel
2024-10-14 15:43:37,983 - root - INFO - Loading 1 new model
2024-10-14 15:43:38,791 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 15:44:01,152 - root - INFO - got prompt
2024-10-14 15:45:06,410 - root - INFO - Requested to load BaseModel
2024-10-14 15:45:06,410 - root - INFO - Loading 1 new model
2024-10-14 15:45:48,660 - root - INFO - Requested to load BaseModel
2024-10-14 15:45:48,660 - root - INFO - Loading 1 new model
2024-10-14 15:46:30,056 - root - INFO - Requested to load BaseModel
2024-10-14 15:46:30,056 - root - INFO - Loading 1 new model
2024-10-14 15:47:13,746 - root - INFO - Prompt executed in 215.78 seconds
2024-10-14 15:47:14,289 - root - INFO - Requested to load BaseModel
2024-10-14 15:47:14,289 - root - INFO - Loading 1 new model
2024-10-14 15:47:15,026 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 15:48:41,464 - root - INFO - Prompt executed in 87.19 seconds
2024-10-14 15:50:55,824 - root - INFO - got prompt
2024-10-14 15:52:22,306 - root - INFO - Requested to load BaseModel
2024-10-14 15:52:22,306 - root - INFO - Loading 1 new model
2024-10-14 15:53:04,041 - root - INFO - Requested to load BaseModel
2024-10-14 15:53:04,041 - root - INFO - Loading 1 new model
2024-10-14 15:53:49,629 - root - INFO - Requested to load BaseModel
2024-10-14 15:53:49,629 - root - INFO - Loading 1 new model
2024-10-14 15:54:30,328 - root - INFO - Requested to load BaseModel
2024-10-14 15:54:30,329 - root - INFO - Loading 1 new model
2024-10-14 15:55:09,264 - root - INFO - Prompt executed in 253.43 seconds
2024-10-14 16:01:43,717 - root - INFO - got prompt
2024-10-14 16:01:43,745 - root - INFO - Requested to load BaseModel
2024-10-14 16:01:43,746 - root - INFO - Loading 1 new model
2024-10-14 16:01:44,608 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 16:03:11,631 - root - INFO - Requested to load BaseModel
2024-10-14 16:03:11,631 - root - INFO - Loading 1 new model
2024-10-14 16:04:14,349 - root - INFO - Requested to load BaseModel
2024-10-14 16:04:14,349 - root - INFO - Loading 1 new model
2024-10-14 16:05:04,838 - root - INFO - Requested to load BaseModel
2024-10-14 16:05:04,838 - root - INFO - Loading 1 new model
2024-10-14 16:05:41,497 - root - INFO - Prompt executed in 237.77 seconds
2024-10-14 16:05:59,766 - root - INFO - got prompt
2024-10-14 16:05:59,804 - root - INFO - Requested to load BaseModel
2024-10-14 16:05:59,804 - root - INFO - Loading 1 new model
2024-10-14 16:06:00,721 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 16:06:42,853 - root - INFO - got prompt
2024-10-14 16:06:48,207 - root - INFO - got prompt
2024-10-14 16:07:27,901 - root - INFO - Requested to load BaseModel
2024-10-14 16:07:27,901 - root - INFO - Loading 1 new model
2024-10-14 16:08:18,540 - root - INFO - Requested to load BaseModel
2024-10-14 16:08:18,540 - root - INFO - Loading 1 new model
2024-10-14 16:09:04,861 - root - INFO - Requested to load BaseModel
2024-10-14 16:09:04,861 - root - INFO - Loading 1 new model
2024-10-14 16:09:54,629 - root - INFO - Requested to load BaseModel
2024-10-14 16:09:54,629 - root - INFO - Loading 1 new model
2024-10-14 16:10:31,034 - root - INFO - Prompt executed in 271.25 seconds
2024-10-14 16:10:31,630 - root - INFO - Requested to load SD1ClipModel
2024-10-14 16:10:31,630 - root - INFO - Loading 1 new model
2024-10-14 16:10:31,777 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-10-14 16:10:31,834 - root - INFO - Requested to load BaseModel
2024-10-14 16:10:31,834 - root - INFO - Loading 1 new model
2024-10-14 16:10:33,089 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 16:11:59,359 - root - INFO - Requested to load BaseModel
2024-10-14 16:11:59,360 - root - INFO - Loading 1 new model
2024-10-14 16:12:38,992 - root - INFO - Requested to load BaseModel
2024-10-14 16:12:38,992 - root - INFO - Loading 1 new model
2024-10-14 16:13:21,496 - root - INFO - Requested to load BaseModel
2024-10-14 16:13:21,500 - root - INFO - Loading 1 new model
2024-10-14 16:14:18,309 - root - INFO - Prompt executed in 226.79 seconds
2024-10-14 16:14:18,930 - root - INFO - Requested to load SD1ClipModel
2024-10-14 16:14:18,930 - root - INFO - Loading 1 new model
2024-10-14 16:14:19,041 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-10-14 16:14:19,095 - root - INFO - Requested to load BaseModel
2024-10-14 16:14:19,095 - root - INFO - Loading 1 new model
2024-10-14 16:14:20,257 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-10-14 16:15:46,272 - root - INFO - Requested to load BaseModel
2024-10-14 16:15:46,272 - root - INFO - Loading 1 new model
2024-10-14 16:16:14,109 - root - INFO - got prompt
2024-10-14 16:16:14,113 - root - ERROR - Failed to validate prompt for output 9:
2024-10-14 16:16:14,113 - root - ERROR - * VAELoader 19:
2024-10-14 16:16:14,113 - root - ERROR -   - Value not in list: vae_name: 'ae.sft' not in ['ae.safetensors']
2024-10-14 16:16:14,113 - root - ERROR - * UNETLoader 12:
2024-10-14 16:16:14,113 - root - ERROR -   - Value not in list: unet_name: '黑格室内设计大模型F.1版本_0.5' not in ['F.1基础算法模型-哩布在线可运行_F.1-dev-fp8.safetensors', 'flux1-schnell.safetensors', '绘梦真境写真F.1 _ 写实摄影大模型 _ 灵动氛围 _FluxAura1.0.safetensors', '黑格室内设计大模型F.1版本_0.5.safetensors']
2024-10-14 16:16:14,113 - root - ERROR - * DualCLIPLoader 16:
2024-10-14 16:16:14,113 - root - ERROR -   - Value not in list: clip_name1: 'clip_l' not in ['EVA02_CLIP_L_336_psz14_s6B.pt', 'ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors', 'ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors', 'clip_l.safetensors', 't5xxl_fp16.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-10-14 16:16:14,113 - root - ERROR -   - Value not in list: clip_name2: 't5xxl_fp8_e4m3fn' not in ['EVA02_CLIP_L_336_psz14_s6B.pt', 'ViT-L-14-BEST-smooth-GmP-TE-only-HF-format.safetensors', 'ViT-L-14-TEXT-detail-improved-hiT-GmP-TE-only-HF.safetensors', 'clip_l.safetensors', 't5xxl_fp16.safetensors', 't5xxl_fp8_e4m3fn.safetensors']
2024-10-14 16:16:14,113 - root - ERROR - * LoadFluxControlNet 39:
2024-10-14 16:16:14,113 - root - ERROR -   - Value not in list: controlnet_path: 'XLabs-flux-depth-controlnet_v3' not in ['flux-canny-controlnet-v3.safetensors']
2024-10-14 16:16:14,113 - root - ERROR - Output will be ignored
2024-10-14 16:16:25,777 - root - INFO - Requested to load BaseModel
2024-10-14 16:16:25,777 - root - INFO - Loading 1 new model
2024-10-14 16:16:45,771 - root - INFO - got prompt
2024-10-14 16:17:09,806 - root - INFO - Requested to load BaseModel
2024-10-14 16:17:09,806 - root - INFO - Loading 1 new model
2024-10-14 16:17:55,505 - root - INFO - Requested to load BaseModel
2024-10-14 16:17:55,505 - root - INFO - Loading 1 new model
2024-10-14 16:18:35,570 - root - INFO - Prompt executed in 256.74 seconds
2024-10-14 16:18:36,340 - root - INFO - Using split attention in VAE
2024-10-14 16:18:36,341 - root - INFO - Using split attention in VAE
2024-10-14 16:18:36,591 - dinov2 - WARNING - xFormers not available
2024-10-14 16:18:36,592 - dinov2 - WARNING - xFormers not available
2024-10-14 16:18:36,596 - dinov2 - INFO - using MLP layer as FFN
2024-10-14 16:18:43,935 - root - INFO - Requested to load FluxClipModel_
2024-10-14 16:18:43,936 - root - INFO - Loading 1 new model
2024-10-14 16:18:43,940 - root - INFO - loaded completely 0.0 4777.53759765625 True
2024-10-14 16:18:44,040 - root - WARNING - clip missing: ['text_projection.weight']
2024-10-14 16:18:48,090 - root - INFO - model weight dtype torch.bfloat16, manual cast: None
2024-10-14 16:18:48,090 - root - INFO - model_type FLUX
2024-10-14 16:19:07,946 - root - INFO - Requested to load Flux
2024-10-14 16:19:07,947 - root - INFO - Loading 1 new model
2024-10-14 16:19:36,104 - root - INFO - loaded completely 0.0 22700.097778320312 True
2024-10-14 16:19:36,606 - root - ERROR - !!! Exception during processing !!! Torch not compiled with CUDA enabled
2024-10-14 16:19:36,609 - root - ERROR - Traceback (most recent call last):
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/x-flux-comfyui/nodes.py", line 361, in sampling
    if torch.cuda.is_bf16_supported():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 138, in is_bf16_supported
    device = torch.cuda.current_device()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 878, in current_device
    _lazy_init()
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 305, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

2024-10-14 16:19:36,610 - root - INFO - Prompt executed in 60.53 seconds
2024-10-14 16:20:23,136 - root - INFO - got prompt
2024-10-14 16:20:23,265 - root - ERROR - !!! Exception during processing !!! Torch not compiled with CUDA enabled
2024-10-14 16:20:23,266 - root - ERROR - Traceback (most recent call last):
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/x-flux-comfyui/nodes.py", line 361, in sampling
    if torch.cuda.is_bf16_supported():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 138, in is_bf16_supported
    device = torch.cuda.current_device()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 878, in current_device
    _lazy_init()
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 305, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

2024-10-14 16:20:23,266 - root - INFO - Prompt executed in 0.12 seconds
2024-10-14 16:22:50,763 - root - INFO - got prompt
2024-10-14 16:22:50,913 - root - ERROR - !!! Exception during processing !!! Torch not compiled with CUDA enabled
2024-10-14 16:22:50,914 - root - ERROR - Traceback (most recent call last):
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/Users/xxs/comfyUI/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/custom_nodes/x-flux-comfyui/nodes.py", line 361, in sampling
    if torch.cuda.is_bf16_supported():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 138, in is_bf16_supported
    device = torch.cuda.current_device()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 878, in current_device
    _lazy_init()
  File "/Users/xxs/comfyUI/ComfyUI/venv/lib/python3.12/site-packages/torch/cuda/__init__.py", line 305, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

2024-10-14 16:22:50,914 - root - INFO - Prompt executed in 0.14 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":127,"last_link_id":153,"nodes":[{"id":26,"type":"ImageScale","pos":{"0":-480,"1":-320},"size":{"0":385.29449462890625,"1":130},"flags":{},"order":6,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":29,"label":"图像"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[31],"slot_index":0,"shape":3,"label":"图像"}],"properties":{"Node name for S&R":"ImageScale"},"widgets_values":["nearest-exact",1344,768,"center"]},{"id":28,"type":"PreviewImage","pos":{"0":450,"1":-480},"size":{"0":210,"1":246},"flags":{},"order":11,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":39,"label":"图像"}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"},"widgets_values":[]},{"id":15,"type":"ConditioningZeroOut","pos":{"0":440,"1":100},"size":{"0":185.57034301757812,"1":48.28664779663086},"flags":{"pinned":false},"order":9,"mode":0,"inputs":[{"name":"conditioning","type":"CONDITIONING","link":17,"label":"条件"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[49],"slot_index":0,"shape":3,"label":"条件"}],"properties":{"Node name for S&R":"ConditioningZeroOut"},"widgets_values":[],"color":"#322","bgcolor":"#533"},{"id":34,"type":"FluxGuidance","pos":{"0":760,"1":-320},"size":{"0":254.30397033691406,"1":61.365177154541016},"flags":{},"order":10,"mode":0,"inputs":[{"name":"conditioning","type":"CONDITIONING","link":54,"label":"条件"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[47],"slot_index":0,"shape":3,"label":"条件"}],"properties":{"Node name for S&R":"FluxGuidance"},"widgets_values":[3.5]},{"id":36,"type":"ApplyFluxControlNet","pos":{"0":760,"1":-200},"size":{"0":393,"1":98},"flags":{},"order":12,"mode":0,"inputs":[{"name":"controlnet","type":"FluxControlNet","link":53,"slot_index":0,"label":"ControlNet"},{"name":"image","type":"IMAGE","link":52,"slot_index":1,"label":"图像"},{"name":"controlnet_condition","type":"ControlNetCondition","link":null,"shape":7}],"outputs":[{"name":"controlnet_condition","type":"ControlNetCondition","links":[51],"shape":3,"label":"ControlNet条件"}],"properties":{"Node name for S&R":"ApplyFluxControlNet"},"widgets_values":[0.45]},{"id":35,"type":"FluxGuidance","pos":{"0":760,"1":-60},"size":{"0":254.66310119628906,"1":58},"flags":{},"order":13,"mode":0,"inputs":[{"name":"conditioning","type":"CONDITIONING","link":49,"label":"条件"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[50],"slot_index":0,"shape":3,"label":"条件"}],"properties":{"Node name for S&R":"FluxGuidance"},"widgets_values":[3.5]},{"id":5,"type":"EmptyLatentImage","pos":{"0":750,"1":100},"size":{"0":328.4434509277344,"1":106},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"LATENT","type":"LATENT","links":[58],"slot_index":0,"label":"Latent"}],"properties":{"Node name for S&R":"EmptyLatentImage"},"widgets_values":[1344,768,1]},{"id":27,"type":"AIO_Preprocessor","pos":{"0":-36,"1":-322},"size":{"0":315,"1":82},"flags":{},"order":8,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":31,"label":"图像"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[39,52],"slot_index":0,"shape":3,"label":"图像"}],"properties":{"Node name for S&R":"AIO_Preprocessor"},"widgets_values":["DepthAnythingV2Preprocessor",768]},{"id":13,"type":"CLIPTextEncodeFlux","pos":{"0":-41,"1":32},"size":{"0":392.11248779296875,"1":197.73944091796875},"flags":{},"order":7,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":19,"slot_index":0,"label":"CLIP"}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[17,54],"slot_index":0,"shape":3,"label":"条件"}],"properties":{"Node name for S&R":"CLIPTextEncodeFlux"},"widgets_values":["modern minimalist bedroom, dark gray wall with seamless panels in the center, light gray bed, light wood flooring, low bedside table, minimalist pendant light, embedded mirrors on either side of the wall, large window on the left with long dark gray curtains, natural light coming in, white bedding with gray blanket, stylish and clean overall look.","modern minimalist bedroom, dark gray wall with seamless panels in the center, light gray bed, light wood flooring, low bedside table, minimalist pendant light, embedded mirrors on either side of the wall, large window on the left with long dark gray curtains, natural light coming in, white bedding with gray blanket, stylish and clean overall look.",3.5,true,true],"color":"#232","bgcolor":"#353"},{"id":8,"type":"VAEDecode","pos":{"0":1656,"1":-331},"size":{"0":210,"1":46},"flags":{},"order":15,"mode":0,"inputs":[{"name":"samples","type":"LATENT","link":55,"label":"Latent"},{"name":"vae","type":"VAE","link":24,"slot_index":1,"label":"VAE"}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[9],"slot_index":0,"label":"图像"}],"properties":{"Node name for S&R":"VAEDecode"},"widgets_values":[]},{"id":31,"type":"XlabsSampler","pos":{"0":1271,"1":-477},"size":{"0":342.5999755859375,"1":282},"flags":{},"order":14,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":59,"label":"模型"},{"name":"conditioning","type":"CONDITIONING","link":47,"label":"正面条件"},{"name":"neg_conditioning","type":"CONDITIONING","link":50,"label":"负面条件"},{"name":"latent_image","type":"LATENT","link":58,"label":"Latent","shape":7},{"name":"controlnet_condition","type":"ControlNetCondition","link":51,"slot_index":4,"label":"ControlNet条件","shape":7}],"outputs":[{"name":"latent","type":"LATENT","links":[55],"slot_index":0,"shape":3,"label":"Latent"}],"properties":{"Node name for S&R":"XlabsSampler"},"widgets_values":[205826020835492,"randomize",20,20,3.5,0,1]},{"id":25,"type":"LoadImage","pos":{"0":-995,"1":-395},"size":{"0":497.30938720703125,"1":554.22802734375},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[29],"slot_index":0,"shape":3,"label":"图像"},{"name":"MASK","type":"MASK","links":null,"shape":3,"label":"遮罩"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["ComfyUI_temp_ckahk_00009_.png","image"]},{"id":9,"type":"SaveImage","pos":{"0":1967,"1":-456},"size":{"0":1269.642822265625,"1":809.2650146484375},"flags":{},"order":16,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":9,"label":"图像"}],"outputs":[],"properties":{"Node name for S&R":"SaveImage"},"widgets_values":["ComfyUI"],"color":"#223","bgcolor":"#335"},{"id":12,"type":"UNETLoader","pos":{"0":748,"1":-477},"size":{"0":367.150634765625,"1":90.50630187988281},"flags":{},"order":2,"mode":0,"inputs":[],"outputs":[{"name":"MODEL","type":"MODEL","links":[59],"slot_index":0,"shape":3,"label":"模型"}],"properties":{"Node name for S&R":"UNETLoader"},"widgets_values":["黑格室内设计大模型F.1版本_0.5.safetensors","default"]},{"id":19,"type":"VAELoader","pos":{"0":1281,"1":-153},"size":{"0":327.7368469238281,"1":58},"flags":{},"order":3,"mode":0,"inputs":[],"outputs":[{"name":"VAE","type":"VAE","links":[24],"shape":3}],"properties":{"Node name for S&R":"VAELoader"},"widgets_values":["ae.safetensors"]},{"id":39,"type":"LoadFluxControlNet","pos":{"0":-480,"1":-130},"size":{"0":394.47808837890625,"1":89.68663787841797},"flags":{},"order":4,"mode":0,"inputs":[],"outputs":[{"name":"ControlNet","type":"FluxControlNet","links":[53],"shape":3,"label":"ControlNet"}],"properties":{"Node name for S&R":"LoadFluxControlNet"},"widgets_values":["flux-dev-fp8","flux-canny-controlnet-v3.safetensors"]},{"id":16,"type":"DualCLIPLoader","pos":{"0":-478,"1":34},"size":{"0":395.4394836425781,"1":318},"flags":{},"order":5,"mode":0,"inputs":[],"outputs":[{"name":"CLIP","type":"CLIP","links":[19],"shape":3,"label":"CLIP"}],"properties":{"Node name for S&R":"DualCLIPLoader"},"widgets_values":["clip_l.safetensors","t5xxl_fp8_e4m3fn.safetensors","flux"]}],"links":[[9,8,0,9,0,"IMAGE"],[17,13,0,15,0,"CONDITIONING"],[19,16,0,13,0,"CLIP"],[24,19,0,8,1,"VAE"],[29,25,0,26,0,"IMAGE"],[31,26,0,27,0,"IMAGE"],[39,27,0,28,0,"IMAGE"],[47,34,0,31,1,"CONDITIONING"],[49,15,0,35,0,"CONDITIONING"],[50,35,0,31,2,"CONDITIONING"],[51,36,0,31,4,"ControlNetCondition"],[52,27,0,36,1,"IMAGE"],[53,39,0,36,0,"FluxControlNet"],[54,13,0,34,0,"CONDITIONING"],[55,31,0,8,0,"LATENT"],[58,5,0,31,3,"LATENT"],[59,12,0,31,0,"MODEL"]],"groups":[{"title":"Flux-XLabs采样器+专用Flux ControlNet+Depth深度图控制工作流V2","bounding":[-1047,-705,4311,1130],"color":"#3f789e","font_size":100,"flags":{}}],"config":{},"extra":{"ds":{"scale":0.505447028499313,"offset":[-123.87402004170345,1120.1531314147546]},"0246.VERSION":[0,0,4]},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)



### Other

无
@xcccmoon xcccmoon added the Potential Bug User is reporting a bug. This should be tested. label Oct 14, 2024
@xcccmoon
Copy link
Author

mac M1

@pandayummy
Copy link

image
https://pytorch.org/get-started/locally/
It seems CUDA+Torch is not available on Mac.

@ltdrdata
Copy link
Collaborator

image https://pytorch.org/get-started/locally/ It seems CUDA+Torch is not available on Mac.

CUDA is a technology of NVIDIA GPUs. This is the reason NVIDIA GPUs are recommended for AI image generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug User is reporting a bug. This should be tested.
Projects
None yet
Development

No branches or pull requests

3 participants