Skip to content

Commit

Permalink
Update src/refiners/foundationals/latent_diffusion/style_aligned.py
Browse files Browse the repository at this point in the history
Co-authored-by: Cédric Deltheil <[email protected]>
  • Loading branch information
Laurent2916 and deltheil authored Feb 15, 2024
1 parent 8a744fc commit 43be770
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def style_aligned_layers(self) -> fl.Distribute:
return fl.Distribute(*self._style_aligned_layers)

def inject(self, parent: fl.Chain | None = None) -> "SharedSelfAttentionAdapter":
# insert the StyleAligned modules, right after the Q, K, V Linear-s (wrapped inside a fl.Distribute)
self.target.insert_before_type(
module_type=fl.ScaledDotProductAttention,
new_module=self.style_aligned_layers,
Expand Down

0 comments on commit 43be770

Please sign in to comment.