(512, 512))
caption = pipeline.generate_caption(raw_image)
caption 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 wi