mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
502 stars 131 forks source link

Support for AMD GPU #336

Open ryanrezrez opened 1 month ago

ryanrezrez commented 1 month ago

I have an AMD GPU and I want to run Fooocus API with it, the problem is that it gives me this error: AssertionError: Torch not compiled with CUDA enabled. CUDA is for NVIDEA GPUs. Can you update it so that people that have AMD GPUs can install and use Fooocus API. The original Fooocus supports AMD GPUs.

mrhan1993 commented 1 month ago

I can not test this, because i have no AMD GPU. However, you can refer to linux-amd-gpus to manually adjust the environment, and then use the --skip-pip parameter when launching Fooocus-API.