mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
BUG fixes and more visualization changes
This commit is contained in:
@@ -3,6 +3,7 @@ import numpy as np
|
||||
|
||||
def pad_data(x, length):
|
||||
_pad = 0
|
||||
assert x.ndim == 1
|
||||
return np.pad(x, (0, length - x.shape[0]),
|
||||
mode='constant',
|
||||
constant_values=_pad)
|
||||
|
||||
Reference in New Issue
Block a user