Spaces:
Runtime error
Runtime error
Update diffusion_webui/diffusion_models/controlnet_inpaint_pipeline.py
Browse files22 unmodified lines232425262728295 unmodified lines3536373839404142434422 unmodified linessuper().__init__()def load_model(self, stable_model_path, controlnet_model_path, scheduler):if self.pipe is None:controlnet = ControlNetModel.from_pretrained(controlnet_model_path, torch_dtype=torch.float16)5 unmodified linestorch_dtype=torch.float16,))self.pipe = get_scheduler(pipe=self.pipe, scheduler=scheduler)self.pipe.to("cuda")self.pipe.enable_xformers_memory_efficient_attention()return self.pipe22 unmodified lines232425262728295 unmodified lines353637383940414243444522 unmodified linessuper().__init__()def load_model(self, stable_model_path, controlnet_model_path, scheduler):if self.pipe is None or self.pipe.model_name != stable_model_path or self.pipe.scheduler_name != scheduler:controlnet = ControlNetModel.from_pretrained(controlnet_model_path, torch_dtype=torch.float16)5 unmodified linestorch_dtype=torch.float16,))self.pipe.model_name = stable_model_pathself.pipe = get_scheduler(pipe=self.pipe, scheduler=scheduler)self.pipe.to("cuda")self.pipe.enable_xformers_memory_efficient_attention()return self.pipe
diffusion_webui/diffusion_models/controlnet_inpaint_pipeline.py+6-5