descript-audio-codec icon indicating copy to clipboard operation
descript-audio-codec copied to clipboard

Duration not preserved?

Open maitycyrus opened this issue 1 year ago • 0 comments

Why is the duration not preserved during a forward pass through the model?

import dac
from audiotools import AudioSignal
import torch

model_path = dac.utils.download(model_type="24khz")
model = dac.DAC.load(model_path)

x = torch.rand(1, 1, 320*10)
y = model(x)["audio"]

print("duration x = ", x.shape[-1])
print("duration y = ", y.shape[-1])

Output:

duration x =  3200
duration y =  3192

maitycyrus avatar Apr 17 '24 15:04 maitycyrus