.png"

init_image = load_image(img_url).convert("RGB")
mask_image = load_image(mask_url).convert("RGB")

prompt = "A majestic tiger sitting on a bench"
image = pipeline(prompt, image=init_image, mask_image=mask_image, num_inference_steps=50, strength=0.80).images[0]
image  If you try to load an unsupported checkpoint, it’ll throw an error:   Copied from diffusers import AutoPipelineForImage2Image
import torch

pipeline = AutoPipelineForImage2Im