mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-29 10:41:25 +00:00
Update unet.py
This commit is contained in:
@@ -281,10 +281,7 @@ class BasicTransformerBlock(nn.Module):
|
|||||||
|
|
||||||
if self.attn2 is not None:
|
if self.attn2 is not None:
|
||||||
n = self.norm2(x)
|
n = self.norm2(x)
|
||||||
if self.switch_temporal_ca_to_sa:
|
context_attn2 = context
|
||||||
context_attn2 = n
|
|
||||||
else:
|
|
||||||
context_attn2 = context
|
|
||||||
value_attn2 = None
|
value_attn2 = None
|
||||||
if "attn2_patch" in transformer_patches:
|
if "attn2_patch" in transformer_patches:
|
||||||
patch = transformer_patches["attn2_patch"]
|
patch = transformer_patches["attn2_patch"]
|
||||||
|
|||||||
Reference in New Issue
Block a user