Spaces:
Runtime error
Runtime error
fix duration dim
Browse files- beat_interpolator.py +1 -1
beat_interpolator.py
CHANGED
@@ -60,7 +60,7 @@ def beat_interpolator(wave_path, generator, latent_dim, seed, fps=30, batch_size
|
|
60 |
times2 = np.asarray(times)
|
61 |
times = merge_times(times, times2)
|
62 |
|
63 |
-
times = np.concatenate([np.asarray([0.]), times, np.asarray(duration)], 0)
|
64 |
times = list(np.unique(np.int64(np.floor(times * fps / 2))) * 2)
|
65 |
|
66 |
latents = []
|
|
|
60 |
times2 = np.asarray(times)
|
61 |
times = merge_times(times, times2)
|
62 |
|
63 |
+
times = np.concatenate([np.asarray([0.]), times, np.asarray([duration])], 0)
|
64 |
times = list(np.unique(np.int64(np.floor(times * fps / 2))) * 2)
|
65 |
|
66 |
latents = []
|