xuanandsix / GFPGAN-onnxruntime-demo

This is the onnxruntime inference code for GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior (CVPR 2021). Official code: https://github.com/TencentARC/GFPGAN
128 stars 18 forks source link

gfpgan onnx model giving bad results #11

Open dummyuser-123 opened 8 months ago

dummyuser-123 commented 8 months ago

I have used your script and converted gfpgan pth model into onnx model but I am getting horrible results. Like output image is same as input image (in terms of dimensions/size) and the output gets worst after inference. In short, it is not doing super resolution on the image and also making current input image bad.

@xuanandsix So, what could be the possible reason behind this problem ? ( Btw, I have done all the steps properly that you have mentioned in the readme file.)

Input Image: depositphotos_389009186-stock-photo-full-length-studio-portrait-handsome

Output Image: depositphotos_389009186-stock-photo-full-length-studio-portrait-handsome_upscaled_gfpgan

dummyuser-123 commented 8 months ago

Your inference script can only enhance portrait images to high resolution images. It always fails in full body input images.