mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
cleanup.
This commit is contained in:
parent
329c571993
commit
b12b48e170
@ -111,7 +111,6 @@ class SelfAttentionGuidance:
|
|||||||
m = model.clone()
|
m = model.clone()
|
||||||
|
|
||||||
attn_scores = None
|
attn_scores = None
|
||||||
mid_block_shape = None
|
|
||||||
|
|
||||||
# TODO: make this work properly with chunked batches
|
# TODO: make this work properly with chunked batches
|
||||||
# currently, we can only save the attn from one UNet call
|
# currently, we can only save the attn from one UNet call
|
||||||
@ -134,7 +133,6 @@ class SelfAttentionGuidance:
|
|||||||
|
|
||||||
def post_cfg_function(args):
|
def post_cfg_function(args):
|
||||||
nonlocal attn_scores
|
nonlocal attn_scores
|
||||||
nonlocal mid_block_shape
|
|
||||||
uncond_attn = attn_scores
|
uncond_attn = attn_scores
|
||||||
|
|
||||||
sag_scale = scale
|
sag_scale = scale
|
||||||
|
Loading…
Reference in New Issue
Block a user