You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/diffusers/models/transformers/transformer_2d.py
+4-7
Original file line number
Diff line number
Diff line change
@@ -117,9 +117,6 @@ def __init__(
117
117
self.attention_head_dim=attention_head_dim
118
118
inner_dim=num_attention_heads*attention_head_dim
119
119
120
-
conv_cls=nn.Conv2d
121
-
linear_cls=nn.Linear
122
-
123
120
# 1. Transformer2DModel can process both standard continuous images of shape `(batch_size, num_channels, width, height)` as well as quantized image embeddings of shape `(batch_size, num_image_vectors)`
124
121
# Define whether input is continuous or discrete depending on configuration
125
122
self.is_input_continuous= (in_channelsisnotNone) and (patch_sizeisNone)
0 commit comments