From b56ec5ee1b5af1b12b51470b2d2baa8c7519d9ff Mon Sep 17 00:00:00 2001 From: D-Blue Date: Mon, 20 Dec 2021 20:33:12 +0800 Subject: [PATCH] Fix a UserWarning (#273) Fix a UserWarning in synthesizer/synthesizer_dataset.py, because of converting list of numpy array to torch tensor at Ln.85. --- synthesizer/synthesizer_dataset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synthesizer/synthesizer_dataset.py b/synthesizer/synthesizer_dataset.py index 975cb60..9e5ed58 100644 --- a/synthesizer/synthesizer_dataset.py +++ b/synthesizer/synthesizer_dataset.py @@ -73,6 +73,7 @@ def collate_synthesizer(batch): # Speaker embedding (SV2TTS) embeds = [x[2] for x in batch] + embeds = np.stack(embeds) # Index (for vocoder preprocessing) indices = [x[3] for x in batch]