inv_latents = pipeline.invert(caption, image=raw_image, generator=generator).latents Now, generate the image with edit directions:   Copied # See the "Generating source and target embeddings" section below to