philz1337x / clarity-upscaler

Clarity AI | AI Image Upscaler & Enhancer - free and open-source Magnific Alternative
https://ClarityAI.co
GNU Affero General Public License v3.0
3.92k stars 409 forks source link

Resolution not upscaled when using mask for preservation - replicate demo #44

Open anilsathyan7 opened 4 months ago

anilsathyan7 commented 4 months ago

Adding a mask for preserving part of image leads to image not upscaled in output(resolution). Binary mask is of same size of image in input. If mask not provided, resolution is up-scaled properly.

immex-tech commented 2 months ago

+1

philz1337x commented 1 month ago

Yes, this is intentional because the masked part will not get upscaled, so I downscale the result to the starting resolution, but the quality of the unmasked area is improved afterward.

simbrams commented 2 weeks ago

Same issue, would it be possible to add an option to force returning the upscaled version ? And we would handle the composition ourselves with the masked part. :)