koishijs/novelai-bot

Feature: Face Restoration in SD-WebUI

MaikoTan opened this issue · 1 comments

Scope

Stable Diffusion WebUI (AUTOMATIC1111)

Describe the problem related to the feature request

Implement "Face Restoration" feature in txt2img mode.

Describe the solution you'd like

  • Add a new configuration says face restoration, values are Off, CodeFormer and GFPGAN that respect the backend.
  • Add a new configuration says face restoration strength that controls the strength of face restoration mentioned above. (values: 0.0 - 1.0)
  • Before sending a request, add restore_face property as values above.

Describe alternatives you've considered

None.

Additional context

Only SD-WebUI support face restoration.

Note that Stable Horde supports GFPGAN as well (and according their client code, they seems support CodeFormer, but not exposed in the API)

UPDATE: stable horde supports CodeFormer as well.