heduler

pipeline.scheduler = DDIMScheduler.from_config(pipeline.scheduler.config)

images = pipeline(
    prompt,
    source_embeds=source_embeddings,
    target_embeds=target_embeddings,
    num_inference_steps=50,
    cross_attention_guidance_amount=0.15,
).images
images[0].save("edited_image_dog.png")

StableDiffusionPix2PixZeroPipeline
	

class diffusers.StableDiffusionPix2PixZeroPipeline

<
source
>
(
vae: AutoencoderKL
text_encoder: CLIP