mirror of
https://github.com/babysor/Realtime-Voice-Clone-Chinese.git
synced 2026-04-27 20:30:09 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user