### Describe the bug Error during inference: `height` and `width` have to be divisible by 8 but are 1080 and 1920 Should be 16 instead of 8. **Minor issue, can be fixed later.** ### Reproduction Simply pass width = 1920 and height=1080 ### Logs ```shell Error during inference: `height` and `width` have to be divisible by 8 but are 1080 and 1920. ``` ### System Info N.A. ### Who can help? _No response_
Activity
nitinmukesh commentedon Feb 12, 2025
I think fix could be
diffusers/src/diffusers/pipelines/lumina2/pipeline_lumina2.py
Line: 382
Replace
raise ValueError(f"
heightandwidthhave to be divisible by 8 but are {height} and {width}.")with
raise ValueError(f"
heightandwidthhave to be divisible by {(self.vae_scale_factor * 2)} but are {height} and {width}.")I think the issue is with template which is used for new pipeline creation and hence some new pipelines get this issue.
yiyixuxu commentedon Feb 12, 2025
hi @nitinmukesh, sounds good! feel free to send a PR!
otherwise I will fix in #10776
nitinmukesh commentedon Feb 13, 2025
Before I could start, PR is created