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
9fccf4aa
Commit
9fccf4aa
authored
Jun 21, 2023
by
comfyanonymous
Browse files
Add original_shape parameter to transformer patch extra_options.
parent
852cf4db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/ldm/modules/attention.py
comfy/ldm/modules/attention.py
+2
-0
No files found.
comfy/ldm/modules/attention.py
View file @
9fccf4aa
...
...
@@ -529,6 +529,8 @@ class BasicTransformerBlock(nn.Module):
extra_options
[
"transformer_index"
]
=
transformer_options
[
"current_index"
]
if
"block_index"
in
transformer_options
:
extra_options
[
"block_index"
]
=
transformer_options
[
"block_index"
]
if
"original_shape"
in
transformer_options
:
extra_options
[
"original_shape"
]
=
transformer_options
[
"original_shape"
]
if
"patches"
in
transformer_options
:
transformer_patches
=
transformer_options
[
"patches"
]
else
:
...
...
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