ption = pipeline.generate_caption(raw_image)
Then we employ the generated caption and the input image to get the inverted noise: 


	Copied
generator = torch.manual_seed(0)
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
# automate the generation of these captions with a pre-trained m