Spaces:
Runtime error
Runtime error
update
Browse filesFiles changed (7)
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_canny.py+1-1
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py+1-2
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_hed.py+1-1
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_mlsd.py+1-1
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_pose.py+1-1
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_scribble.py+1-1
- diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_seg.py+1-2
41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return imagedef controlnet_canny_inpaint(41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return imagedef controlnet_canny_inpaint(
41 unmodified lines4243444546474849505141 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return imagedef controlnet_inpaint_depth(self, image_path: str):depth_estimator = pipeline("depth-estimation")image = image_path["image"].convert("RGB").resize((512, 512))41 unmodified lines42434445464748495041 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return imagedef controlnet_inpaint_depth(self, image_path: str):depth_estimator = pipeline("depth-estimation")image = image_path["image"].convert("RGB").resize((512, 512))
41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return image41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return image
41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return image41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return image
42 unmodified lines4344454647484942 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return imagedef controlnet_pose_inpaint(self, image_path: str):42 unmodified lines4344454647484942 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return imagedef controlnet_pose_inpaint(self, image_path: str):
41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return imagedef controlnet_inpaint_scribble(self, image_path: str):41 unmodified lines4243444546474841 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return imagedef controlnet_inpaint_scribble(self, image_path: str):
202 unmodified lines203204205206207208209210211202 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image_path)return imagedef controlnet_seg_inpaint(self, image_path: str):image_processor = AutoImageProcessor.from_pretrained("openmmlab/upernet-convnext-small"202 unmodified lines203204205206207208209210202 unmodified linesdef load_image(self, image_path):image = np.array(image_path)image = Image.fromarray(image)return imagedef controlnet_seg_inpaint(self, image_path: str):image_processor = AutoImageProcessor.from_pretrained("openmmlab/upernet-convnext-small"
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_canny.py+1-1
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_depth.py+1-2
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_hed.py+1-1
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_mlsd.py+1-1
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_pose.py+1-1
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_scribble.py+1-1
diffusion_webui/diffusion_models/controlnet/controlnet_inpaint/controlnet_inpaint_seg.py+1-2