lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
7.03k stars 686 forks source link

[Feature Request]: Please support "--use-cpu gfpgan codeformer" Start Prompt #565

Open HyunJae5463 opened 5 months ago

HyunJae5463 commented 5 months ago

Is there an existing issue for this?

What would your feature do ?

Enables Face Restoration to run on CPU, since IPEX has issues with it and it only works if it runs via the CPU

Proposed workflow

Just want "--use-cpu gfpgan codeformer" starting prompt to work like in A1111 or SD.Next so either face restoration model runs on the CPU. This sadly doesn't seem to work on forge.

Additional information

No response

redrum-llik commented 5 months ago

Indeed, A1111 lets user specify device on a separate basis - either GUI option (like the one for RNG) or a cmd argument would be great to have. For now, patching devices.py to override the device is feasible as a workaround.

mr-september commented 3 months ago

+1 this is required for both AMD and Intel users. Well documented issue:

https://github.com/lllyasviel/stable-diffusion-webui-forge/issues?q=codeformer