ges conditioned on example / reference images
To quickly demo PaintByExample, please have a look at this demo
You can run the following code snippet as an example:


	Copied
# !pip install diffusers transformers

import PIL
import requests
import torch
from io import BytesIO
from diffusers import DiffusionPipeline


def download_image(url):
    response = requests.get(url)
    return PIL.Image.open(BytesIO(response.content)).convert("RGB")


im