l-testing/diffusers-images/resolve/main/kandinskyv22/cat.png"
).resize((768, 768))
img  Then you can use the depth-estimation Pipeline from 🤗 Transformers to process the image and retrieve the depth map:   Copied import torch
import numpy as np

from transformers import pipeline

def make_hint(image, depth_estimator):
    image = depth_estimator(image)["depth"]
    image = np.array(image)
    image = image[:, :, None]
    image = np.concatenate