1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

fix check_inputs func in LuminaText2ImgPipeline (#10651)

This commit is contained in:
victolee0
2025-01-28 04:47:01 +09:00
committed by GitHub
parent 158c5c4d08
commit 8ceec90d76

View File

@@ -396,8 +396,10 @@ class LuminaText2ImgPipeline(DiffusionPipeline):
prompt_attention_mask=None,
negative_prompt_attention_mask=None,
):
if height % 8 != 0 or width % 8 != 0:
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(
f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} but are {height} and {width}."
)
if prompt is not None and prompt_embeds is not None:
raise ValueError(