mrhan1993 / Fooocus-API

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

Run using CPU #90

Closed joaohgsperandio closed 8 months ago

joaohgsperandio commented 8 months ago

Is it possible to run the api using CPU for processing? I do not have a NVIDIA GPU and I'm getting the following error upon image generation try:

[Warning] Wrong base_model_name input: juggernautXL_version6Rundiffusion.safetensors, using default
[Warning] Wrong lora model_name input: sd_xl_offset_example-lora_1.0.safetensors, using 'None'
Import default pipeline error: 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
[Task Queue] Finish task with error, seq=2
konieshadow commented 8 months ago

I'm afraid you can't. Because it will be super slow to generate images without GPUs. Maybe you have AMD GPU or others?