Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duration not preserved? #68

Open
maitycyrus opened this issue Apr 17, 2024 · 0 comments
Open

Duration not preserved? #68

maitycyrus opened this issue Apr 17, 2024 · 0 comments

Comments

@maitycyrus
Copy link

maitycyrus commented Apr 17, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant