image.save("upsampled_cat.png")

Depth-to-Image
	
Depth-Guided Text-to-Image: stabilityai/stable-diffusion-2-depth StableDiffusionDepth2ImagePipeline


	Copied
import torch
import requests
from PIL import Image

from diffusers import StableDiffusionDepth2ImgPipeline

pipe = StableDiffusionDepth2ImgPipeline.from_pretrained(
    "stabilityai/stable-diffusion-2-depth",
    torch_dtype=torch.float16,
).to("cuda")


url = "http://images.cocodataset.