Browse Source

Add original_shape parameter to transformer patch extra_options.

pull/784/head
comfyanonymous 1 year ago
parent
commit
9fccf4aa03
  1. 2
      comfy/ldm/modules/attention.py

2
comfy/ldm/modules/attention.py

@ -529,6 +529,8 @@ class BasicTransformerBlock(nn.Module):
extra_options["transformer_index"] = transformer_options["current_index"] extra_options["transformer_index"] = transformer_options["current_index"]
if "block_index" in transformer_options: if "block_index" in transformer_options:
extra_options["block_index"] = transformer_options["block_index"] 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: if "patches" in transformer_options:
transformer_patches = transformer_options["patches"] transformer_patches = transformer_options["patches"]
else: else:

Loading…
Cancel
Save