[refactor] enhance readability of flux related pipelines by Luciennnnnnn · Pull Request #9711 · huggingface/diffusers (original) (raw)
What does this PR do?
This PR refactors the FLUX-related pipelines to improve clarity and consistency, particularly in regards to height and width determination. The changes align the implementation more closely with other pipelines in the library, enhancing overall code coherence and maintainability.
The original code obscured the details of how latents packing affects resolution, but this change makes the process more transparent and easier to understand.