Spaces:
Running
on
A10G
Running
on
A10G
Handle any size
#33
by
Fabrice-TIERCELIN
- opened
This PR handles and restores any original sizes, even greater than 1 million of pixels:
- It saves the original size
- It computes the best size for SDXL, even if it's landscape or portrait
- It handles that the size must be multiple of 8
- After the computation, it restores the orignal size
This code is already used here: https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop