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

AssertionError: Torch not compiled with CUDA enabled #24

Open
eizoxx opened this issue Jul 14, 2024 · 1 comment
Open

AssertionError: Torch not compiled with CUDA enabled #24

eizoxx opened this issue Jul 14, 2024 · 1 comment

Comments

@eizoxx
Copy link

eizoxx commented Jul 14, 2024

Traceback (most recent call last):
File "E:\AI\ComfyUI_windows_portable\ComfyUI\main.py", line 80, in
import execution
File "E:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 11, in
import nodes
File "E:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 21, in
import comfy.diffusers_load
File "E:\AI\ComfyUI_windows_portable\ComfyUI\comfy\diffusers_load.py", line 3, in
import comfy.sd
File "E:\AI\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 5, in
from comfy import model_management
File "E:\AI\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 119, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File "E:\AI\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 88, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\user\AppData\Roaming\Python\Python311\site-packages\torch\cuda_init_.py", line 778, in current_device
lazy_init()
File "C:\Users\user\AppData\Roaming\Python\Python311\site-packages\torch\cuda_init
.py", line 284, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

Getting this error, when I try to install and restart LivePortrait

@eizoxx
Copy link
Author

eizoxx commented Jul 14, 2024

I got it to work!!!
First I figured out that it had to something with (IMPORT FAILED) comfyui-liveportrait in the ComfyUI Custom Node Manager.
I simply followed this guide:
https://www.reddit.com/r/comfyui/comments/1b4u63e/import_failed/
I simplified it a bit with ChatGPT, but I followed leftclot's workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant