add infer support for audio2motion

This commit is contained in:
sen.liang committed 2022-06-09 11:00:50 +08:00
1 parent 0b46d9f3eb
commit 23fdd42edd
23 files changed
+824 -74

No files matched your search

+1
View File
@@ -119,6 +119,7 @@ if __name__ == "__main__":
cond = output.last_hidden_state
print(f"cond shape = {cond.shape}")
# convert to windows
cond = F.pad(cond, pad=(0, 0, 8, 7), mode="replicate")
cond = cond.unfold(dimension=1, size=16, step=1) # (B, nseqs, nc_motion, 16)