Skip to content

Duration not preserved? #68

@maitycyrus

Description

@maitycyrus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions