How to decode with the same results.
winddori2002 opened this issue · 2 comments
winddori2002 commented
Hi,
I am using ParallelWaveGan to decode from the mel to wav.
However, every time I decode the outputs, the results have small differences. I wonder if I can fix the seed and reproduce the same results when I run the codes. I used the codes like as below in Python.
cmd = ['parallel-wavegan-decode', '--checkpoint',
'../checkpoin.pkl', '--feats-scp', './feats.1.scp', '--normalize-before','--outdir', './']
subprocess.call(cmd)
Thank you.
kan-bayashi commented
Adding torch.manual_seed(your_favorite_seed)
around
winddori2002 commented
Thank you for answering!