n_indices=token_indices,
    guidance_scale=7.5,
    generator=generator,
    num_inference_steps=50,
    max_iter_to_alter=25,
).images

image = images[0]
image.save(f"../images/{prompt}_{seed}.png")

StableDiffusionAttendAndExcitePipeline
	

class diffusers.StableDiffusionAttendAndExcitePipeline

<
source
>
(
vae: AutoencoderKL
text_encoder: CLIPTextModel
tokenizer: CLIPTokenizer
unet: UNet2DConditionModel
scheduler: KarrasDiffusionSchedulers