From 3e14bd6c45026b22a52c889b7855559abcec9271 Mon Sep 17 00:00:00 2001 From: Ryan Dick Date: Wed, 14 Feb 2024 18:18:58 -0500 Subject: [PATCH] Remove unused constructor declared with typo in name: __int__. --- .../diffusion/cross_attention_control.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/invokeai/backend/stable_diffusion/diffusion/cross_attention_control.py b/invokeai/backend/stable_diffusion/diffusion/cross_attention_control.py index 1741440bc2..2bbee87f09 100644 --- a/invokeai/backend/stable_diffusion/diffusion/cross_attention_control.py +++ b/invokeai/backend/stable_diffusion/diffusion/cross_attention_control.py @@ -533,18 +533,6 @@ class SwapCrossAttnContext: mask: torch.Tensor # in the target space of the index_map cross_attention_types_to_do: list[CrossAttentionType] = field(default_factory=list) - def __int__( - self, - cac_types_to_do: [CrossAttentionType], - modified_text_embeddings: torch.Tensor, - index_map: torch.Tensor, - mask: torch.Tensor, - ): - self.cross_attention_types_to_do = cac_types_to_do - self.modified_text_embeddings = modified_text_embeddings - self.index_map = index_map - self.mask = mask - def wants_cross_attention_control(self, attn_type: CrossAttentionType) -> bool: return attn_type in self.cross_attention_types_to_do