tent)).convert("RGB")
>>> text = "a red car in the sun"

>>> pipe = VersatileDiffusionPipeline.from_pretrained(
...     "shi-labs/versatile-diffusion", torch_dtype=torch.float16
... )
>>> pipe = pipe.to("cuda")

>>> generator = torch.Generator(device="cuda").manual_seed(0)
>>> text_to_image_strength = 0.75

>>> image = pipe.dual_guided(
...     prompt=text, image=image, text_to_image_strength=text_to_image_strength, generator=generator
... ).im