Spaces:
Runtime error
Runtime error
Update ldm/models/seg_module.py
Browse files- ldm/models/seg_module.py +1 -1
ldm/models/seg_module.py
CHANGED
@@ -94,7 +94,7 @@ class TransformerDecoderLayer(nn.Module):
|
|
94 |
def forward(self, tgt, memory, pos = None, query_pos = None):
|
95 |
tgt2 = self.norm1(tgt)
|
96 |
q = k = self.with_pos_embed(tgt2, query_pos)
|
97 |
-
print('q:',q.shape)
|
98 |
tgt2 = self.self_attn(q, k, value=tgt2)[0]
|
99 |
|
100 |
tgt = tgt + self.dropout1(tgt2)
|
|
|
94 |
def forward(self, tgt, memory, pos = None, query_pos = None):
|
95 |
tgt2 = self.norm1(tgt)
|
96 |
q = k = self.with_pos_embed(tgt2, query_pos)
|
97 |
+
# print('q:',q.shape)
|
98 |
tgt2 = self.self_attn(q, k, value=tgt2)[0]
|
99 |
|
100 |
tgt = tgt + self.dropout1(tgt2)
|