ipeline
>>> import torch
>>> import requests
>>> from io import BytesIO
>>> from PIL import Image

>>> # let's download an initial image
>>> url = "https://huggingface.co/datasets/diffusers/images/resolve/main/benz.jpg"

>>> response = requests.get(url)
>>> image = Image.open(BytesIO(response.content)).convert("RGB")

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