Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfpgan onnx model giving bad results #11

Open
dummyuser-123 opened this issue Feb 28, 2024 · 1 comment
Open

gfpgan onnx model giving bad results #11

dummyuser-123 opened this issue Feb 28, 2024 · 1 comment

Comments

@dummyuser-123
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant