From 1edc19e0e8d70a69c8083a58456f6894c1623baf Mon Sep 17 00:00:00 2001 From: Antoine Date: Fri, 23 Apr 2021 18:01:19 +0200 Subject: [PATCH] changes interpolation call, closes #18 --- ddsp/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddsp/core.py b/ddsp/core.py index cc03afd..6b40721 100644 --- a/ddsp/core.py +++ b/ddsp/core.py @@ -62,7 +62,7 @@ def resample(x, factor: int): def upsample(signal, factor): signal = signal.permute(0, 2, 1) - signal = nn.functional.interpolate(signal, scale_factor=factor) + signal = nn.functional.interpolate(signal, size=signal.shape[-1] * factor) return signal.permute(0, 2, 1)