Inpainting color change
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
Hello,
I tried the hi-res fix example using Inpainting:
https://comfyanonymous.github.io/ComfyUI_examples/2_pass_txt2img/
The inpainting result looks good but original pixels outside mask are pixelated which also makes sense because I downscaled 1024 image to 512 made the Inpainting and used Latent Upscale coming back to 1024. The whole workflow looks very similar but I used normal non inpainting model + Inpainting VAE Encode + non inpainting model for second sampler.
This is mask and result:


To solve the issue I added LatentCompositionMasked node which might be same as "apply_overlay" parameter in Diffuser project and got this result:

This looks not so bad (beside the masked edges at the lower left but my mask is quite large - so this is just as it is).
Now comes the problem the whole image gets an drastic color change here putting it in original context:

This is a known problem other servers have but overall it is solved more than a year ago. So I am wondering why there isn't any example showing hires fix+ Inpainting on 1.x at all for ComfyUI in whole internet. Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.