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

Perform masked image restoration for GFPGAN, RealESRGAN, fixing #947 #966

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

xaedes
Copy link
Contributor

@xaedes xaedes commented Sep 10, 2022

Perform masked image restoration for GFPGAN, RealESRGAN, fixing #947

Also fixes bug in image display when using masked image restoration with RealESRGAN.

When the image is upscaled using RealESRGAN the image restoration can not use the original image because it has wrong resolution. In this case the image restoration will restore the non-regenerated parts of the image with an RealESRGAN upscaled version of the original input image.

Modifications from GFPGAN or color correction in (un)masked parts are restored to the original image by mask blending.

…ing Sygil-Dev#947.

Also fixes bug in image display when using masked image restoration with RealESRGAN.

When the image is upscaled using RealESRGAN the image restoration can not use the
original image because it has wrong resolution. In this case the image restoration
will restore the non-regenerated parts of the image with an RealESRGAN upscaled
version of the original input image.

Modifications from GFPGAN or color correction in (un)masked parts are also restored
to the original image by mask blending.
Co-authored-by: Thomas Mello <[email protected]>
Copy link
Collaborator

@codedealer codedealer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good now

@codedealer codedealer merged commit 008af2d into Sygil-Dev:dev Sep 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants