Comfy-Org / Comfy-Org/ComfyUI

Running ComfyUI with XFX Radeon RX470 GPU

Open
#2,576 12 comments 0 reactions 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

Hi, is it possible to run ComfyUI with a XFX Radeon RX470 GPU on Windows 10 ?

Is works fine with CPU, but when I try to run the non-CPU version, it of course gives me a **"Found no NVIDIA driver on your system"**

```
E:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py
Traceback (most recent call last):
File "E:\ComfyUI_windows_portable\ComfyUI\main.py", line 76, in
import execution
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 13, in
import nodes
File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 20, in
import comfy.diffusers_load
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\diffusers_load.py", line 4, in
import comfy.sd
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 5, in
from comfy import model_management
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 118, in
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 87, in get_torch_device
return torch.device(torch.cuda.current_device())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\cuda\__init__.py", line 769, in current_device
_lazy_init()
File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\cuda\__init__.py", line 298, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx
```

So I follow the "Manual Install (Windows, Linux) / Others / DirectML (AMD Cards on Windows) and try to install DirectML

```
ComfyUI_windows_portable> pip install torch-directml
ERROR: Could not find a version that satisfies the requirement torch-directml (from versions: none)
ERROR: No matching distribution found for torch-directml
```

and of course running doesn't work

I tried installing with the
`pip install torch===2.1.0 torchvision===0.16.0 -f https://download.pytorch.org/whl/torch_stable.html`
but it still doesn't work

```
E:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --directml
Traceback (most recent call last):
File "E:\ComfyUI_windows_portable\ComfyUI\main.py", line 76, in
import execution
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 13, in
import nodes
File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 20, in
import comfy.diffusers_load
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\diffusers_load.py", line 4, in
import comfy.sd
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\sd.py", line 5, in
from comfy import model_management
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\model_management.py", line 37, in
import torch_directml
ModuleNotFoundError: No module named 'torch_directml'
```

Should I do something else to be able to run it on Windows 10 with the RX470 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.