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 (Mac M4 Pro) #9

Open
huongng105 opened this issue Feb 2, 2025 · 1 comment
Open

Torch not compiled with CUDA enabled (Mac M4 Pro) #9

huongng105 opened this issue Feb 2, 2025 · 1 comment
Assignees
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@huongng105
Copy link

Image Image

ComfyUI Error Report

Error Details

  • Node ID: 25
  • Node Type: LoadInvSRModels
  • Exception Type: AssertionError
  • Exception Message: Torch not compiled with CUDA enabled

Stack Trace

  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 327, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 202, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/node.py", line 93, in loadmodel
    base_sampler = BaseSampler(configs)
                   ^^^^^^^^^^^^^^^^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 40, in __init__
    self.build_model()

  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 79, in build_model
    sd_pipe.to(f"cuda")

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/pipelines/pipeline_utils.py", line 461, in to
    module.to(device, dtype)

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/models/modeling_utils.py", line 1077, in to
    return super().to(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1340, in to
    return self._apply(convert)
           ^^^^^^^^^^^^^^^^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 900, in _apply
    module._apply(fn)

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 927, in _apply
    param_applied = fn(param)
                    ^^^^^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1326, in convert
    return t.to(
           ^^^^^

  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/cuda/__init__.py", line 310, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")

System Information

  • ComfyUI Version: 0.3.12
  • Arguments: main.py
  • OS: posix
  • Python Version: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ]
  • Embedded Python: false
  • PyTorch Version: 2.5.1

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 25769803776
    • VRAM Free: 10761584640
    • Torch VRAM Total: 25769803776
    • Torch VRAM Free: 10761584640

Logs

2025-02-02T21:05:00.329939 - [START] Security scan2025-02-02T21:05:00.329950 - 
2025-02-02T21:05:00.637146 - [DONE] Security scan2025-02-02T21:05:00.637166 - 
2025-02-02T21:05:00.661972 - ## ComfyUI-Manager: installing dependencies done.2025-02-02T21:05:00.662013 - 
2025-02-02T21:05:00.662031 - ** ComfyUI startup time:2025-02-02T21:05:00.662043 -  2025-02-02T21:05:00.662054 - 2025-02-02 21:05:00.6622025-02-02T21:05:00.662062 - 
2025-02-02T21:05:00.662080 - ** Platform:2025-02-02T21:05:00.662093 -  2025-02-02T21:05:00.662103 - Darwin2025-02-02T21:05:00.662111 - 
2025-02-02T21:05:00.662122 - ** Python version:2025-02-02T21:05:00.662131 -  2025-02-02T21:05:00.662139 - 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ]2025-02-02T21:05:00.662147 - 
2025-02-02T21:05:00.662157 - ** Python executable:2025-02-02T21:05:00.662167 -  2025-02-02T21:05:00.662179 - /opt/anaconda3/envs/Flux_GGUF/bin/python2025-02-02T21:05:00.662189 - 
2025-02-02T21:05:00.662199 - ** ComfyUI Path:2025-02-02T21:05:00.662206 -  2025-02-02T21:05:00.662213 - /opt/anaconda3/envs/Flux_GGUF/ComfyUI2025-02-02T21:05:00.662221 - 
2025-02-02T21:05:00.662228 - ** ComfyUI Base Folder Path:2025-02-02T21:05:00.662235 -  2025-02-02T21:05:00.662242 - /opt/anaconda3/envs/Flux_GGUF/ComfyUI2025-02-02T21:05:00.662249 - 
2025-02-02T21:05:00.662260 - ** User directory:2025-02-02T21:05:00.662267 -  2025-02-02T21:05:00.662274 - /opt/anaconda3/envs/Flux_GGUF/ComfyUI/user2025-02-02T21:05:00.662281 - 
2025-02-02T21:05:00.662288 - ** ComfyUI-Manager config path:2025-02-02T21:05:00.662295 -  2025-02-02T21:05:00.662302 - /opt/anaconda3/envs/Flux_GGUF/ComfyUI/user/default/ComfyUI-Manager/config.ini2025-02-02T21:05:00.662309 - 
2025-02-02T21:05:00.662318 - ** Log path:2025-02-02T21:05:00.662326 -  2025-02-02T21:05:00.662334 - /opt/anaconda3/envs/Flux_GGUF/ComfyUI/user/comfyui.log2025-02-02T21:05:00.662340 - 
2025-02-02T21:05:01.068503 - 
Prestartup times for custom nodes:
2025-02-02T21:05:01.068630 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/rgthree-comfy
2025-02-02T21:05:01.068661 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-easy-use
2025-02-02T21:05:01.068681 -    0.8 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI-Manager
2025-02-02T21:05:01.068705 - 
2025-02-02T21:05:01.589272 - Checkpoint files will always be loaded safely.
2025-02-02T21:05:01.603657 - Total VRAM 24576 MB, total RAM 24576 MB
2025-02-02T21:05:01.603713 - pytorch version: 2.5.1
2025-02-02T21:05:01.603778 - Set vram state to: SHARED
2025-02-02T21:05:01.603801 - Device: mps
2025-02-02T21:05:01.974065 - Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
2025-02-02T21:05:02.438148 - [Prompt Server] web root: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/web
2025-02-02T21:05:02.917825 - ### Loading: ComfyUI-Manager (V3.17.6)
2025-02-02T21:05:02.966231 - ### ComfyUI Version: v0.3.12-9-gc6ab7a8c | Released on '2025-01-20'
2025-02-02T21:05:03.082656 - 
2025-02-02T21:05:03.082696 - �[92m[rgthree-comfy] Loaded 42 extraordinary nodes. 🎉�[00m2025-02-02T21:05:03.082709 - 
2025-02-02T21:05:03.082719 - 
2025-02-02T21:05:03.083167 - ### Loading: ComfyUI-Impact-Pack (V8.8.1)2025-02-02T21:05:03.083180 - 
2025-02-02T21:05:03.100301 - [Impact Pack] Wildcards loading done.2025-02-02T21:05:03.100323 - 
2025-02-02T21:05:03.101552 - Total VRAM 24576 MB, total RAM 24576 MB
2025-02-02T21:05:03.101590 - pytorch version: 2.5.1
2025-02-02T21:05:03.101671 - Set vram state to: SHARED
2025-02-02T21:05:03.101697 - Device: mps
2025-02-02T21:05:03.113451 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-02-02T21:05:03.116745 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-02-02T21:05:03.132798 - /opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
  warn("The installed version of bitsandbytes was compiled without GPU support. "
2025-02-02T21:05:03.132819 - 'NoneType' object has no attribute 'cadam32bit_grad_fp32'2025-02-02T21:05:03.132830 - 
2025-02-02T21:05:03.141183 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-02-02T21:05:03.185119 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-02-02T21:05:03.197446 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-02-02T21:05:03.260421 - �[34m[ComfyUI-Easy-Use] server: �[0mv1.2.6 �[92mLoaded�[0m2025-02-02T21:05:03.260455 - 
2025-02-02T21:05:03.260467 - �[34m[ComfyUI-Easy-Use] web root: �[0m/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-easy-use/web_version/v2 �[92mLoaded�[0m2025-02-02T21:05:03.260478 - 
2025-02-02T21:05:03.864177 - �[34mWAS Node Suite: �[0mOpenCV Python FFMPEG support is enabled�[0m2025-02-02T21:05:03.864219 - 
2025-02-02T21:05:03.864245 - �[34mWAS Node Suite: �[0m`ffmpeg_bin_path` is set to: /opt/homebrew/bin/ffmpeg�[0m2025-02-02T21:05:03.864255 - 
2025-02-02T21:05:04.040722 - �[34mWAS Node Suite: �[0mFinished.�[0m �[32mLoaded�[0m �[0m220�[0m �[32mnodes successfully.�[0m2025-02-02T21:05:04.040764 - 
2025-02-02T21:05:04.040800 - 
	�[3m�[93m"Success is not the key to happiness. Happiness is the key to success."�[0m�[3m - Albert Schweitzer�[0m
2025-02-02T21:05:04.040811 - 
2025-02-02T21:05:04.142306 - ------------------------------------------2025-02-02T21:05:04.142328 - 
2025-02-02T21:05:04.142339 - �[34mComfyroll Studio v1.76 : �[92m 175 Nodes Loaded�[0m2025-02-02T21:05:04.142348 - 
2025-02-02T21:05:04.142357 - ------------------------------------------2025-02-02T21:05:04.142366 - 
2025-02-02T21:05:04.142374 - ** For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md2025-02-02T21:05:04.142384 - 
2025-02-02T21:05:04.142392 - ** For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki2025-02-02T21:05:04.142399 - 
2025-02-02T21:05:04.142406 - ------------------------------------------2025-02-02T21:05:04.142414 - 
2025-02-02T21:05:04.197069 - 
Import times for custom nodes:
2025-02-02T21:05:04.197138 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/websocket_image_save.py
2025-02-02T21:05:04.197162 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/wavespeed
2025-02-02T21:05:04.197181 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui_essentials
2025-02-02T21:05:04.197199 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-custom-scripts
2025-02-02T21:05:04.197216 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-kjnodes
2025-02-02T21:05:04.197231 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_LayerStyle_Advance
2025-02-02T21:05:04.197246 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI-GGUF
2025-02-02T21:05:04.197259 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes
2025-02-02T21:05:04.197275 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-impact-pack
2025-02-02T21:05:04.197291 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui_ttp_toolset
2025-02-02T21:05:04.197305 -    0.0 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR
2025-02-02T21:05:04.197318 -    0.1 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI-Manager
2025-02-02T21:05:04.197333 -    0.1 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-tensorops
2025-02-02T21:05:04.197347 -    0.1 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/rgthree-comfy
2025-02-02T21:05:04.197360 -    0.1 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/sd-ppp
2025-02-02T21:05:04.197372 -    0.2 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-easy-use
2025-02-02T21:05:04.197386 -    0.3 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui_layerstyle
2025-02-02T21:05:04.197400 -    0.4 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/comfyui-florence2
2025-02-02T21:05:04.197413 -    0.4 seconds: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/pr-was-node-suite-comfyui-47064894
2025-02-02T21:05:04.197426 - 
2025-02-02T21:05:04.201813 - Starting server

2025-02-02T21:05:04.202015 - To see the GUI go to: http://127.0.0.1:8188
2025-02-02T21:05:06.207151 - FETCH DATA from: /opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2025-02-02T21:05:06.207200 - 2025-02-02T21:05:06.209431 -  [DONE]2025-02-02T21:05:06.209452 - 
2025-02-02T21:05:09.282525 - FETCH ComfyRegistry Data: 5/322025-02-02T21:05:09.282677 - 
2025-02-02T21:05:16.481670 - FETCH ComfyRegistry Data: 10/322025-02-02T21:05:16.481894 - 
2025-02-02T21:05:22.709676 - FETCH ComfyRegistry Data: 15/322025-02-02T21:05:22.709844 - 
2025-02-02T21:05:28.795946 - FETCH ComfyRegistry Data: 20/322025-02-02T21:05:28.796064 - 
2025-02-02T21:05:34.954815 - FETCH ComfyRegistry Data: 25/322025-02-02T21:05:34.955003 - 
2025-02-02T21:05:42.002510 - FETCH ComfyRegistry Data: 30/322025-02-02T21:05:42.002576 - 
2025-02-02T21:05:45.060219 - FETCH ComfyRegistry Data [DONE]2025-02-02T21:05:45.060379 - 
2025-02-02T21:05:45.110258 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-02-02T21:05:45.117978 - nightly_channel: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/remote
2025-02-02T21:05:45.118050 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-02-02T21:05:45.118067 - 2025-02-02T21:05:45.412893 -  [DONE]2025-02-02T21:05:45.413092 - 
2025-02-02T21:05:45.444338 - [ComfyUI-Manager] All startup tasks have been completed.
2025-02-02T21:13:37.185614 - got prompt
2025-02-02T21:13:45.482112 - 
Loading pipeline components...:  80%|███████████████████████████████▏       | 4/5 [00:07<00:01,  1.73s/it]2025-02-02T21:13:45.537404 - 
Loading pipeline components...: 100%|███████████████████████████████████████| 5/5 [00:07<00:00,  1.56s/it]2025-02-02T21:13:45.537429 - 
2025-02-02T21:13:45.537537 - You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-02-02T21:13:45.537992 - You have disabled the safety checker for <class 'ComfyUI_InvSR.comfyui_invsr_trimmed.pipeline_stable_diffusion_inversion_sr.StableDiffusionInvEnhancePipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-02-02T21:13:45.539933 - !!! Exception during processing !!! Torch not compiled with CUDA enabled
2025-02-02T21:13:45.541900 - Traceback (most recent call last):
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 327, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 202, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/node.py", line 93, in loadmodel
    base_sampler = BaseSampler(configs)
                   ^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 40, in __init__
    self.build_model()
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 79, in build_model
    sd_pipe.to(f"cuda")
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/pipelines/pipeline_utils.py", line 461, in to
    module.to(device, dtype)
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/models/modeling_utils.py", line 1077, in to
    return super().to(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1340, in to
    return self._apply(convert)
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 900, in _apply
    module._apply(fn)
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 927, in _apply
    param_applied = fn(param)
                    ^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1326, in convert
    return t.to(
           ^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/cuda/__init__.py", line 310, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

2025-02-02T21:13:45.542550 - Prompt executed in 8.35 seconds
2025-02-02T21:14:03.478795 - got prompt
2025-02-02T21:14:04.763682 - 
Loading pipeline components...:  80%|███████████████████████████████▏       | 4/5 [00:00<00:00,  3.60it/s]2025-02-02T21:14:04.792580 - 
Loading pipeline components...: 100%|███████████████████████████████████████| 5/5 [00:00<00:00,  5.02it/s]2025-02-02T21:14:04.792605 - 
2025-02-02T21:14:04.792680 - You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-02-02T21:14:04.793097 - You have disabled the safety checker for <class 'ComfyUI_InvSR.comfyui_invsr_trimmed.pipeline_stable_diffusion_inversion_sr.StableDiffusionInvEnhancePipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
2025-02-02T21:14:04.793601 - !!! Exception during processing !!! Torch not compiled with CUDA enabled
2025-02-02T21:14:04.794419 - Traceback (most recent call last):
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 327, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 202, 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 "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 174, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/node.py", line 93, in loadmodel
    base_sampler = BaseSampler(configs)
                   ^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 40, in __init__
    self.build_model()
  File "/opt/anaconda3/envs/Flux_GGUF/ComfyUI/custom_nodes/ComfyUI_InvSR/comfyui_invsr_trimmed/sampler_invsr.py", line 79, in build_model
    sd_pipe.to(f"cuda")
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/pipelines/pipeline_utils.py", line 461, in to
    module.to(device, dtype)
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/diffusers/models/modeling_utils.py", line 1077, in to
    return super().to(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1340, in to
    return self._apply(convert)
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 900, in _apply
    module._apply(fn)
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 927, in _apply
    param_applied = fn(param)
                    ^^^^^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1326, in convert
    return t.to(
           ^^^^^
  File "/opt/anaconda3/envs/Flux_GGUF/lib/python3.12/site-packages/torch/cuda/__init__.py", line 310, in _lazy_init
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

2025-02-02T21:14:04.795089 - Prompt executed in 1.31 seconds

Attached Workflow

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

{"last_node_id":25,"last_link_id":35,"nodes":[{"id":20,"type":"Image Comparer (rgthree)","pos":[87.41485595703125,78.13185119628906],"size":[1291.2581787109375,1451.7777099609375],"flags":{},"order":3,"mode":0,"inputs":[{"name":"image_a","type":"IMAGE","link":24,"dir":3},{"name":"image_b","type":"IMAGE","link":25,"dir":3}],"outputs":[],"properties":{"comparer_mode":"Slide"},"widgets_values":[[{"name":"A","selected":true,"url":"/api/view?filename=rgthree.compare._temp_pjfpz_00005_.png&type=temp&subfolder=&rand=0.1289658372341853"},{"name":"B","selected":true,"url":"/api/view?filename=rgthree.compare._temp_pjfpz_00006_.png&type=temp&subfolder=&rand=0.4446029372545113"}]]},{"id":17,"type":"LoadImage","pos":[-867.9894409179688,918.590087890625],"size":[367.18212890625,439.6049499511719],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[24,35],"slot_index":0},{"name":"MASK","type":"MASK","links":null}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["pasted/image (34).png","image"]},{"id":19,"type":"InvSRSampler","pos":[-376.679931640625,1041.8802490234375],"size":[315,222],"flags":{},"order":2,"mode":0,"inputs":[{"name":"invsr_pipe","type":"INVSR_PIPE","link":33},{"name":"images","type":"IMAGE","link":35}],"outputs":[{"name":"image","type":"IMAGE","links":[25],"slot_index":0}],"properties":{"Node name for S&R":"InvSRSampler"},"widgets_values":[1,1,1,128,"none",2494903461,"fixed"]},{"id":25,"type":"LoadInvSRModels","pos":[-877.6565551757812,719.943603515625],"size":[413.84686279296875,130],"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"invsr_pipe","type":"INVSR_PIPE","links":[33]}],"properties":{"Node name for S&R":"LoadInvSRModels"},"widgets_values":["stabilityai/sd-turbo","noise_predictor_sd_turbo_v5.pth","fp16",true]}],"links":[[24,17,0,20,0,"IMAGE"],[25,19,0,20,1,"IMAGE"],[33,25,0,19,0,"INVSR_PIPE"],[35,17,0,19,1,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.8954302432552432,"offset":[1408.768601717503,-484.94714573356134]},"VHS_latentpreview":false,"VHS_latentpreviewrate":0,"node_versions":{"rgthree-comfy":"5d771b8b56a343c24a26e8cea1f0c87c3d58102f","comfy-core":"0.3.12","ComfyUI_InvSR":"b9b1b521dddb13c41dbaf5ac89fd313b8b22053f"}},"version":0.4}

Additional Context

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

@yuvraj108c yuvraj108c added the bug Something isn't working label Feb 2, 2025
@yuvraj108c yuvraj108c self-assigned this Feb 3, 2025
@yuvraj108c
Copy link
Owner

yuvraj108c commented Feb 3, 2025

Hi @huongng105,

Can you test out the latest changes on main?
It should hopefully work!

@yuvraj108c yuvraj108c mentioned this issue Feb 3, 2025
@yuvraj108c yuvraj108c added the good first issue Good for newcomers label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants