Skip to content

Commit 27cb9f7

Browse files
committed
set default height and width
1 parent 24618de commit 27cb9f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/diffusers/modular_pipelines/stable_diffusion_3/before_denoise.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ def __call__(self, components: StableDiffusion3ModularPipeline, state: PipelineS
210210
block_state.device = components._execution_device
211211
batch_size = block_state.batch_size * block_state.num_images_per_prompt
212212

213+
block_state.height = block_state.height or components.default_height
214+
block_state.width = block_state.width or components.default_width
215+
213216
if block_state.latents is not None:
214217
block_state.latents = block_state.latents.to(device=block_state.device, dtype=block_state.dtype)
215218
else:

0 commit comments

Comments
 (0)