Spaces:
Runtime error
Runtime error
Update diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py
Browse files49 unmodified lines5051525354555649 unmodified linesreturn imagedef controlnet_inpaint_depth(self, image_path: str):depth_estimator = pipeline("depth-estimation")image = image_path["image"].convert("RGB").resize((512, 512))image = depth_estimator(image)["depth"]image = np.array(image)49 unmodified lines5051525354555649 unmodified linesreturn imagedef controlnet_inpaint_depth(self, image_path: str):depth_estimator = pipeline("depth-estimation", model="Intel/dpt-hybrid-midas")image = image_path["image"].convert("RGB").resize((512, 512))image = depth_estimator(image)["depth"]image = np.array(image)
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py+1-1