Generates caption for a given image.

invert

<
source
>
(
prompt: typing.Optional[str] = None
image: typing.Union[torch.FloatTensor, PIL.Image.Image] = None
num_inference_steps: int = 50
guidance_scale: float = 1
generator: typing.Union[torch._C.Generator, typing.List[torch._C.Generator], NoneType] = None
latents: typing.Optional[torch.FloatTensor] = None
prompt_embeds: typing.Optional[torch.FloatTensor] = None
cross_attention_guidance_amount: