[Bug]: (but actually useful) color correction + backup applies face restoration to "before" picture
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
after ticking Apply color correction to img2img and save a copy face restoration is being applied to the "before" image
this is actually useful, but is an accidental side-effect and would be better as a specific feature (see screenshots below)
(However note face restore is not applied to final output image. Theoretically if I'm not inpainting the face and I'm only inpainting outside the face, then you might not want face restore, but in some cases it is actually useful to clean up bad quality photos)
Steps to reproduce the problem
- Go to settings
- Tick "Apply color correction to img2img" and "Save a copy..." and apply settings
- Go to inpainting, and mask a face.
- tick "restore face"
- add an appropriate prompt
- Select "Inpaint not masked" and generate
- observe output images
What should have happened?
face restoration should theoretically not be applied to the image (but it can actually be useful here)
original (30% jpg):

masking: (note we are going to inpaint the background outside the face here)

backup image (before color correction)... note how much better the face quality is

*final image (color corrected).. note it is low quality again

Commit where the problem happens
48dbf99e84045ee7af55bc5b1b86492a240e631e
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
--xformers
Additional information, context and logs
No response
I've realised that just doing codeformer on an image is available in the "Extras" tab, so the main issue here is that the Backup & Output images have it applied differently... and whether codeformer should be applied to a masked face that isn't itself being inpainted
Closing as stale.