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

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment