def __init__(
        self,
        share_attention: bool = True,
        adain_queries: bool = True,
        adain_keys: bool = True,
        adain_values: bool = False,
        full_attention_share: bool = False,
        shared_score_scale: float = 1.0,
        shared_score_shift: float = 0.0,
    ):
        r"""Shared Attention Processor as proposed in the StyleAligned paper."""
        super().__init__()
        self.share_attention = share_attention
        self.adain_queries = adain_queries
        self.adain_keys = adain_keys
        self.adain_values = adain_values
        self.full_attention_share = full_attention_share
        self.shared_score_scale = shared_score_scale
        self.shared_score_shift = shared_score_shift
Shared Attention Processor as proposed in the StyleAligned paper.
examples/community/pipeline_sdxl_style_aligned.py