Regarding image down scaling

#113
by amanfor18 - opened

Hey @LiuZichen ,
First of all, amazing work on building this space

I wanted to bring up an issue I’ve noticed, along with a small suggestion related to it. In the process_background_img() function, the image is currently downscaled before performing inpainting. While this definitely helps reduce computation time, it also leads to a noticeable drop in image quality. For editors like me, maintaining high output quality is extremely important, even if it comes at the cost of additional compute time.

I was thinking it could be really helpful to add an optional setting—perhaps a simple checkbox in the Gradio interface that lets users choose whether they want to downscale the image or not. Based on this selection, the pipeline could then proceed with or without downscaling. This would give users the flexibility to balance performance versus quality depending on their needs.

I have tested the changes on google colab as I don't have the hardware on my local system, it worked fine there.
Thanks again for the great work, and I hope this suggestion is useful!

Sign up or log in to comment