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
Hi,
I would like to inquire about performing batch inference using XCodec. Specifically, what is the expected shape of the wav input in the following code snippet ? Should the wav input be of shape [batch_size, 1, num_samples]?
compressed = soundstream.encode(wav, target_bw=args.bw)
print(f"Compressed shape: {compressed.shape}")
# Decode and save
out = soundstream.decode(compressed)
out = out.detach().cpu().squeeze(0)
Any clarification or examples would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I would like to inquire about performing batch inference using XCodec. Specifically, what is the expected shape of the
wav
input in the following code snippet ? Should thewav
input be of shape [batch_size, 1, num_samples]?Any clarification or examples would be greatly appreciated.
Thank you!
The text was updated successfully, but these errors were encountered: