kan-bayashi/ParallelWaveGAN

How to decode with the same results.

winddori2002 opened this issue · 2 comments

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.

Adding torch.manual_seed(your_favorite_seed) around

Thank you for answering!