This PR handles and restores any original sizes, even greater than 1 million of pixels:

  1. It saves the original size
  2. It computes the best size for SDXL, even if it's landscape or portrait
  3. It handles that the size must be multiple of 8
  4. After the computation, it restores the orignal size

This code is already used here: https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop

It already handles any size. I could have it resize to original size if I wanted. I don't want to. Make your own and use said code if you wish. I don't take suggestions.

Manjushri changed pull request status to closed

OK, @Manjushri , as you like. But you should at least replace 512 by 1024.

That is actually Default for the SXDL Turbo Model. Which is being ran on CPU. In other words, actually producing that resolution would be problematic, Not Great Quality and Exceedingly long wait time. I could just simply resize to OG size, but that would Dither the image. I might consider re-adding SD 2.0 x2 Upscaler BACK in... But that actually didn't produce better images. I suggest you just go use my Upscalers or someone else's. You clearly don't actually understand what I've done here. Or what is best for running this model under these conditions. These types of erroneous and superfluous suggestions are exactly why I don't take any.

Sign up or log in to comment