We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 158c5c4 commit 8ceec90Copy full SHA for 8ceec90
src/diffusers/pipelines/lumina/pipeline_lumina.py
@@ -396,8 +396,10 @@ def check_inputs(
396
prompt_attention_mask=None,
397
negative_prompt_attention_mask=None,
398
):
399
- if height % 8 != 0 or width % 8 != 0:
400
- raise ValueError(f"`height` and `width` have to be divisible by 8 but are {height} and {width}.")
+ if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
+ raise ValueError(
401
+ f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} but are {height} and {width}."
402
+ )
403
404
if prompt is not None and prompt_embeds is not None:
405
raise ValueError(
0 commit comments