Skip to content

Commit a6b843a

Browse files
authored
[FIX] check_inputs function in lumina2 (#10784)
1 parent 27b9023 commit a6b843a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/diffusers/pipelines/lumina2/pipeline_lumina2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ def check_inputs(
379379
max_sequence_length=None,
380380
):
381381
if height % (self.vae_scale_factor * 2) != 0 or width % (self.vae_scale_factor * 2) != 0:
382-
raise ValueError(f"`height` and `width` have to be divisible by 8 but are {height} and {width}.")
382+
raise ValueError(
383+
f"`height` and `width` have to be divisible by {self.vae_scale_factor * 2} but are {height} and {width}."
384+
)
383385

384386
if callback_on_step_end_tensor_inputs is not None and not all(
385387
k in self._callback_tensor_inputs for k in callback_on_step_end_tensor_inputs

0 commit comments

Comments
 (0)