Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
b12b48e1
Commit
b12b48e1
authored
Dec 14, 2023
by
comfyanonymous
Browse files
cleanup.
parent
329c5719
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
comfy_extras/nodes_sag.py
comfy_extras/nodes_sag.py
+0
-2
No files found.
comfy_extras/nodes_sag.py
View file @
b12b48e1
...
...
@@ -111,7 +111,6 @@ class SelfAttentionGuidance:
m
=
model
.
clone
()
attn_scores
=
None
mid_block_shape
=
None
# TODO: make this work properly with chunked batches
# currently, we can only save the attn from one UNet call
...
...
@@ -134,7 +133,6 @@ class SelfAttentionGuidance:
def
post_cfg_function
(
args
):
nonlocal
attn_scores
nonlocal
mid_block_shape
uncond_attn
=
attn_scores
sag_scale
=
scale
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment