Spaces:
Running
on
Zero
Running
on
Zero
File size: 333 Bytes
5273050 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import numpy as np
import PIL.Image
from controlnet_aux.util import HWC3
from transformers import pipeline
from cv_utils import resize_image
class DepthEstimator:
def __init__(self):
self.model = pipeline("depth-estimation")
def __call__(self, image: np.ndarray, **kwargs) -> PIL.Image.Image:
return image |