krita-ai-diffusion
krita-ai-diffusion copied to clipboard
Error during server startup: AssertionError: Torch not compiled with CUDA enabled
I used this all day yesterday to generate images without any issues. Today I tried to use ComfyUI to do some Lora training but I had to install manager and a few other things. After installing Lora-Training-in-Comfy I suddenly get this message
\ai_diffusion\server
2024-08-06 16:39:24,610 INFO Connecting to http://127.0.0.1:8188
2024-08-06 16:39:34,247 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:39:41,782 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:40:57,743 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:41:02,870 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:47:06,665 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:54:54,921 INFO Loaded 10 sampler presets from C:\Users\***\AppData\Roaming\krita\pykrita\ai_diffusion\presets\samplers.json
2024-08-06 16:54:54,932 INFO Extension initialized, Version: 1.21.0, Python: 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
2024-08-06 16:54:54,932 INFO Loading settings from C:\Users\***\AppData\Roaming\krita\ai_diffusion\settings.json
2024-08-06 16:54:54,932 INFO Found server installation v1.21.0 at C:\Users\***\AppData\Roaming\krita\ai_diffusion\server
2024-08-06 16:54:55,724 INFO Starting server with python -su -Xutf8 main.py
2024-08-06 16:54:58,181 WARNING Failed to launch/connect server at startup: Error during server startup: AssertionError: Torch not compiled with CUDA enabled [1]
Tried a clean install and the same error persists. Also tried installing libomp140.dll but that also didn't fix the issue. How do I solved this problem?
There's a CPU and a CUDA version of torch, they don't co-exist. Looks like something installed the CPU version.
You tried deleting the server (at C:\Users***\AppData\Roaming\krita\ai_diffusion\server)?
Yeah I think installing the Lora-Training-in-Comfy using the manager is installing Torch on the CPU and causing issues. I might just have to use the portable version of ComfyUI for Lora training.