GFPGAN icon indicating copy to clipboard operation
GFPGAN copied to clipboard

Converting GFPGANv1 to GFPGANv1Clean

Open bocsiboti opened this issue 2 years ago • 4 comments

Is the convert_gfpganv_to_clean.py script supposed to work?

I successfully converted (with no error) the GFPGANv1.pth model to a clean version but its prediction are non-sense.

I tried to change the channel_multiplier, narrow, fix_decoder parameters of the model, but got the same results.

The (1) input image, (2) result of the v1 model prediction, and (3) result of the converted to cleaned predictions can be seen here: https://drive.google.com/drive/folders/1tIa6Uq1cMST4tOLt8EzGhOlnYKZLyhqL?usp=sharing

bocsiboti avatar Jul 19 '22 11:07 bocsiboti

.

elen07zz avatar Jul 21 '22 13:07 elen07zz

Could you explain how You made conversion?

magicse avatar Aug 16 '22 21:08 magicse

convert_gfpganv_to_clean.py use to convert GFPGANBilinear ==> GFPGANv1Clean

ggsddu7 avatar Jun 25 '23 12:06 ggsddu7

@bocsiboti @elen07zz @magicse @Eyesfront-ZJG I have encountered the same issue. I am training the GFPGAN model with my own datasets. The images transformed using the trained model has no problem. Then I converted the trained model to clean model using the convert_gfpganv_to_clean.py. But the images transformed using the clean model becomes strange like there is red color painted all over the transformed image. The predictions of the clean version are non-sense.

Did you guys able to solve the problem?

shubhamghimire avatar Jan 22 '24 05:01 shubhamghimire