Remove unused StableDiffusionGeneratorPipeline.control_model.

This commit is contained in:
Ryan Dick 2024-06-12 15:36:40 -04:00
parent 73a8c55852
commit 3254ba5904

View File

@ -200,7 +200,6 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
safety_checker: Optional[StableDiffusionSafetyChecker], safety_checker: Optional[StableDiffusionSafetyChecker],
feature_extractor: Optional[CLIPFeatureExtractor], feature_extractor: Optional[CLIPFeatureExtractor],
requires_safety_checker: bool = False, requires_safety_checker: bool = False,
control_model: ControlNetModel = None,
): ):
super().__init__( super().__init__(
vae=vae, vae=vae,
@ -214,7 +213,6 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
) )
self.invokeai_diffuser = InvokeAIDiffuserComponent(self.unet, self._unet_forward) self.invokeai_diffuser = InvokeAIDiffuserComponent(self.unet, self._unet_forward)
self.control_model = control_model
self.use_ip_adapter = False self.use_ip_adapter = False
def _adjust_memory_efficient_attention(self, latents: torch.Tensor): def _adjust_memory_efficient_attention(self, latents: torch.Tensor):