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

Inpaint upscale fix #20

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

GuiAworld
Copy link

This messy code fixes the upscaling while using a mask. I'm not a developer, just really good at stitching different parts of code.
It's best to examine my code and clean it up a bit.

Apparently, the upscale process did not properly updated img_orig (x0) or the mask.
So, I rescaled the original image to the new resolution, while keeping the original intact for multiple upscale passes.
And I changed the way the mask was rounded to keep the tensor size the same as the other tensors.

latent.ipynb Outdated Show resolved Hide resolved
@Dango233 Dango233 added the question Further information is requested label Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants