From b31bf1206ea05b0015e97d983dd4d59a407d67c1 Mon Sep 17 00:00:00 2001 From: mrq Date: Wed, 15 Mar 2023 01:51:04 +0000 Subject: [PATCH] oops --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index bd7b067..a3a928d 100755 --- a/src/utils.py +++ b/src/utils.py @@ -1364,7 +1364,7 @@ def prepare_dataset( voice, use_segments, text_length, audio_length, normalize=T from vall_e.emb.g2p import encode as phonemize if waveform.shape[0] == 2: - waveform = wav[:1] + waveform = waveform[:1] quantized = quantize( waveform, sample_rate ).cpu() torch.save(quantized, f'{indir}/valle/{file.replace(".wav",".qnt.pt")}')