@@ -531,8 +531,7 @@ def __call__(
531531 instead.
532532 negative_prompt (`str` or `List[str]`, *optional*):
533533 The prompt or prompts not to guide the image generation. If not defined and negative_prompt_embeds is
534- not provided, will use an empty negative prompt. Ignored when not using guidance.
535- ).
534+ not provided, will use an empty negative prompt. Ignored when not using guidance. ).
536535 height (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
537536 The height in pixels of the generated image. This is set to 1024 by default for the best results.
538537 width (`int`, *optional*, defaults to self.unet.config.sample_size * self.vae_scale_factor):
@@ -548,10 +547,10 @@ def __call__(
548547 A guidance scale value for guidance distilled models. Unlike the traditional classifier-free guidance
549548 where the guidance scale is applied during inference through noise prediction rescaling, guidance
550549 distilled models take the guidance scale directly as an input parameter during forward pass. Guidance
551- is enabled by setting `distilled_guidance_scale > 1`. Higher guidance scale encourages to generate images that
552- are closely linked to the text `prompt`, usually at the expense of lower image quality.
553- For guidance distilled models, this parameter is required.
554- For non-distilled models, this parameter will be ignored.
550+ is enabled by setting `distilled_guidance_scale > 1`. Higher guidance scale encourages to generate
551+ images that are closely linked to the text `prompt`, usually at the expense of lower image quality. For
552+ guidance distilled models, this parameter is required. For non-distilled models, this parameter will be
553+ ignored.
555554 num_images_per_prompt (`int`, *optional*, defaults to 1):
556555 The number of images to generate per prompt.
557556 generator (`torch.Generator` or `List[torch.Generator]`, *optional*):
@@ -782,7 +781,9 @@ def __call__(
782781 guider .prepare_models (self .transformer )
783782
784783 # Extract conditioning kwargs for this batch (e.g., encoder_hidden_states)
785- cond_kwargs = {input_name : getattr (guider_state_batch , input_name ) for input_name in guider_inputs .keys ()}
784+ cond_kwargs = {
785+ input_name : getattr (guider_state_batch , input_name ) for input_name in guider_inputs .keys ()
786+ }
786787
787788 # e.g. "pred_cond"/"pred_uncond"
788789 context_name = getattr (guider_state_batch , guider ._identifier_key )
0 commit comments