comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
56.67k stars 6.01k forks source link

error launching with integrated graphics #2602

Open mcandre opened 10 months ago

mcandre commented 10 months ago
$ python main.py
    raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled

I'm using the CPU edition of pytorch (pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu), on Ubuntu Jammy.

Update

I found the --cpu command line flag, which is then able to launch the service. Something in the graphics variant detection logic was defaulting to CUDA, even though no CUDA capable graphics card is installed.

ltdrdata commented 10 months ago

https://github.com/comfyanonymous/ComfyUI#manual-install-windows-linux

Each GPU environment requires different setup.