-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
AMD support #3
Comments
Same issue with RX 6700 XT. |
Same on AMD 6750XT |
Related: comfyanonymous/ComfyUI#160 |
ComfyUI already has support for AMD cards on Windows via Microsoft's DirectML, but it has to be activated through a CLI argument (--directml). Since Fooocus imports Comfy directly I don't see any way of setting the I tried to hack around this in the Comfy repository. First by changing So I commented out that code, and after a while I got the web UI running, but i was unable to generate any images since I apparently have too little RAM in my old computer (12 GB): The GPU and VRAM was barely used during this, so there was some bug still preventing DirectML to be used I think. On top of that xFormers complains that it was built for PyTorch with Cuda, and I could find any way of either installing a CPU only version, or disable it. I got slightly better results trying to use the same SDXL models in ComfyUI, but ultimately I got out of memory error there as well and gave up. I should mention that in both Fooocus' and ComfyUI's Python environments i had installed torch-directml (version 0.2.0.dev230426), which obviously is needed to import it. |
Same on Amd RX588 |
same on Amd 580 |
RX 5700XT not work |
AMD Radeon RX 7900 XTX not working here as well |
AMD Radeon RX 6750 XT also does not work here |
I've been using Fooocus on a 7900 XTX and it seems to work. Just need to make the changes mentioned in #624 (comment) I would like to see some optimizations done to make it faster on AMD cards though |
thanks it works now ^^ edited: |
The minimum requirements that @lllyasviel posted above says 16GB GPU memory required for AMD on Windows with DirectML |
After starting, Fooocus exists with a "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" error.
Running on Windows 11 and AMD Radeon RX 7900 XTX.
The text was updated successfully, but these errors were encountered: