GFPGAN icon indicating copy to clipboard operation
GFPGAN copied to clipboard

fix unwanted color change in processed images

Open lstein opened this issue 3 years ago • 3 comments

GFPGAN is changing the color of processed images by making them darker. This PR fixes the problem - it is just two lines. See https://github.com/lstein/stable-diffusion/issues/169 for an illustrated description of the problem.

lstein avatar Sep 09 '22 18:09 lstein

yep, as reported in #161

dearkafka avatar Sep 09 '22 20:09 dearkafka

It doesn't look like this repository is maintained? Last commit was seven months ago.

lstein avatar Sep 11 '22 15:09 lstein

Hi @lstein

This fix is not correct, as the core network takes the RGB as input.

The 'darker' issue may come from other causes.

Also, I've tested with the images in the 'inputs' folder, this fix will change the colors.

xinntao avatar Sep 12 '22 14:09 xinntao