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

Comfyui broken after installing custom node #23

Open
SWAPv1 opened this issue Jul 19, 2024 · 1 comment
Open

Comfyui broken after installing custom node #23

SWAPv1 opened this issue Jul 19, 2024 · 1 comment

Comments

@SWAPv1
Copy link

SWAPv1 commented Jul 19, 2024

Hello I need help, after restarting comfyui after installing the custom node, now comfyui will not load.

Anyway to revert?

Microsoft Windows [Version 10.0.19045.4651]
(c) Microsoft Corporation. All rights reserved.

B:\pinokio\api\comfyui.pinokio.git\ComfyUI>conda_hook && conda deactivate && conda deactivate && conda deactivate && conda activate base && B:\pinokio\api\comfyui.pinokio.git\ComfyUI\env\Scripts\activate B:\pinokio\api\comfyui.pinokio.git\ComfyUI\env && python main.py
[START] Security scan
[DONE] Security scan

ComfyUI-Manager: installing dependencies done.

** ComfyUI startup time: 2024-07-18
** Platform: Windows
** Python version: 3.10.14 | packaged by Anaconda, Inc. | (main, May 6 2024, 19:44:50) [MSC v.1916 64 bit (AMD64)]
** Python executable: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\env\Scripts\python.exe
** ComfyUI Path: B:\pinokio\api\comfyui.pinokio.git\ComfyUI
** Log path: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\comfyui.log

Prestartup times for custom nodes:
0.0 seconds: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\rgthree-comfy
0.0 seconds: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Easy-Use
0.0 seconds: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Marigold
2.6 seconds: B:\pinokio\api\comfyui.pinokio.git\ComfyUI\custom_nodes\ComfyUI-Manager

Traceback (most recent call last):
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\main.py", line 80, in
import execution
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\execution.py", line 11, in
import nodes
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\nodes.py", line 21, in
import comfy.diffusers_load
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\diffusers_load.py", line 3, in
import comfy.sd
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\sd.py", line 5, in
from comfy import model_management
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 119, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\comfy\model_management.py", line 88, in get_torch_device
return torch.device(torch.cuda.current_device())
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda_init_.py", line 787, in current_device
lazy_init()
File "B:\pinokio\api\comfyui.pinokio.git\ComfyUI\env\lib\site-packages\torch\cuda_init
.py", line 293, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

(env) (base) B:\pinokio\api\comfyui.pinokio.git\ComfyUI>

@smthemex
Copy link
Owner

try:
pip uninstall torchaudio torchvision torch xformers
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121
pip install xformers==0.0.24
pip install facenet_pytorch

facenet_pytorch cause this issue

if you using cu118
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu118

if you using conda
conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=11.8 -c pytorch -c nvidia
or
conda install pytorch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 pytorch-cuda=12.1 -c pytorch -c nvidia

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

2 participants