add audio2mesh model support
This commit is contained in:
1 parent
5eb304186a
commit
386df9a4ab
83 files changed
+9318
-1307
No files matched your search
@@ -57,16 +57,14 @@ class Audio2MotionVOCA3(nn.Module):
|
||||
(nbatch, nseqlen, nwind, nfeat) = x.shape # (B, nseq, 16, 29)
|
||||
debug(self.opt, f"[forward] input x shape = {x.shape}", verbose=False)
|
||||
|
||||
# preprocessing data
|
||||
# preprocessing data
|
||||
x = x.reshape(nbatch * nseqlen, 1, nwind, nfeat) # (B * nseq, 1, 16, 29)
|
||||
x = torch.transpose(x, 1, 3) # (B * nseq, 29, 16, 1)
|
||||
debug(self.opt, f"[forward] transpose x shape = {x.shape}", verbose=False)
|
||||
|
||||
|
||||
feat = self.encoder(x) # (B * nseq, 50)
|
||||
debug(self.opt, f"[forward] encoder shape = {feat.shape}", verbose=False)
|
||||
|
||||
|
||||
pred = self.decoder(feat) # (B * nseq, dim_motion)
|
||||
debug(self.opt, f"[forward] decoder shape = {pred.shape}", verbose=False)
|
||||
|
||||
|
||||
Reference in new issue
Block a user