Skip to content

Commit 5058d27

Browse files
authored
added attention_head_dim, attention_type, resolution_idx (#6011)
1 parent 748c1b3 commit 5058d27

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def get_down_block(
5050
resnet_eps,
5151
resnet_act_fn,
5252
num_attention_heads,
53+
transformer_layers_per_block,
54+
attention_type,
55+
attention_head_dim,
5356
resnet_groups=None,
5457
cross_attention_dim=None,
5558
downsample_padding=None,
@@ -113,6 +116,10 @@ def get_up_block(
113116
resnet_eps,
114117
resnet_act_fn,
115118
num_attention_heads,
119+
transformer_layers_per_block,
120+
resolution_idx,
121+
attention_type,
122+
attention_head_dim,
116123
resnet_groups=None,
117124
cross_attention_dim=None,
118125
dual_cross_attention=False,

0 commit comments

Comments
 (0)