Update t2s_model.py (#1283)
y is None at no reference mode, and Nonetype object has no attribute shape
This commit is contained in:
@@ -528,6 +528,7 @@ class Text2SemanticDecoder(nn.Module):
|
||||
y_pos = None
|
||||
xy_pos = x
|
||||
y = torch.zeros(x.shape[0], 0, dtype=torch.int, device=x.device)
|
||||
prompts = y
|
||||
ref_free = True
|
||||
|
||||
x_attn_mask_pad = F.pad(
|
||||
|
||||
Reference in New Issue
Block a user