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.
This commit is contained in:
D-Blue 2021-12-20 20:33:12 +08:00 committed by GitHub
parent 0bc34a5bc9
commit b56ec5ee1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ def collate_synthesizer(batch):
# Speaker embedding (SV2TTS) # Speaker embedding (SV2TTS)
embeds = [x[2] for x in batch] embeds = [x[2] for x in batch]
embeds = np.stack(embeds)
# Index (for vocoder preprocessing) # Index (for vocoder preprocessing)
indices = [x[3] for x in batch] indices = [x[3] for x in batch]