We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b54683 commit 210945cCopy full SHA for 210945c
examples/pipeline_wavernn/datasets.py
@@ -73,6 +73,13 @@ def raw_collate(batch):
73
x_input = waves[:, :seq_len]
74
y_coarse = waves[:, 1:]
75
76
+ bits = 16 if args.mode == 'MOL' else args.n_bits
77
+
78
+ x_input = 2 * x_input / (2**bits - 1.) - 1
79
80
+ if args.mode == 'MOL':
81
+ y_coarse = 2 * y_coarse.float() / (2**bits - 1.) - 1
82
83
return x_input, mels, y_coarse
84
85
return raw_collate
0 commit comments