Update flux.py

This commit is contained in:
layerdiffusion
2024-08-12 21:42:00 -07:00
parent c7aa9c58d2
commit 3589b57ec1

View File

@@ -228,7 +228,7 @@ class DoubleStreamBlock(nn.Module):
del txt_v, img_v
attn = attention(q, k, v, pe=pe)
del pe
del pe, q, k, v
txt_attn, img_attn = attn[:, :txt.shape[1]], attn[:, txt.shape[1]:]
del attn