def disable_style_aligned(self):
        r"""Disables the StyleAligned mechanism if it had been previously enabled."""
        if self.style_aligned_enabled:
            for layer in self._style_aligned_norm_layers:
                layer.forward = layer.orig_forward

            self._style_aligned_norm_layers = None
            self._disable_shared_attention_processors()
Disables the StyleAligned mechanism if it had been previously enabled.
examples/community/pipeline_sdxl_style_aligned.py