mirror of
https://github.com/babysor/MockingBird.git
synced 2024-03-22 13:11:31 +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:
parent
0bc34a5bc9
commit
b56ec5ee1b
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user