kadirnar commited on
Commit
cc94116
1 Parent(s): 8630659

Update diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py

Browse files
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py CHANGED
@@ -50,7 +50,7 @@ class StableDiffusionControlInpaintNetDepthGenerator:
50
  return image
51
 
52
  def controlnet_inpaint_depth(self, image_path: str):
53
- depth_estimator = pipeline("depth-estimation")
54
  image = image_path["image"].convert("RGB").resize((512, 512))
55
  image = depth_estimator(image)["depth"]
56
  image = np.array(image)
 
50
  return image
51
 
52
  def controlnet_inpaint_depth(self, image_path: str):
53
+ depth_estimator = pipeline("depth-estimation", model="Intel/dpt-hybrid-midas")
54
  image = image_path["image"].convert("RGB").resize((512, 512))
55
  image = depth_estimator(image)["depth"]
56
  image = np.array(image)