Skip to content

Commit

Permalink
Add original_shape parameter to transformer patch extra_options.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jun 21, 2023
1 parent 852cf4d commit 9fccf4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comfy/ldm/modules/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ def _forward(self, x, context=None, transformer_options={}):
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:
Expand Down

0 comments on commit 9fccf4a

Please sign in to comment.