Skip to content

Commit 8ceec90

Browse files
authored
fix check_inputs func in LuminaText2ImgPipeline (#10651)
1 parent 158c5c4 commit 8ceec90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/diffusers/pipelines/lumina/pipeline_lumina.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,10 @@ def check_inputs(
396396
prompt_attention_mask=None,
397397
negative_prompt_attention_mask=None,
398398
):
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}.")
399+
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
400+
raise ValueError(
401+
f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} but are {height} and {width}."
402+
)
401403

402404
if prompt is not None and prompt_embeds is not None:
403405
raise ValueError(

0 commit comments

Comments
 (0)