diff options
| author | Hiroshiba Kazuyuki <hihokaruta@gmail.com> | 2018-01-14 07:40:07 +0900 |
|---|---|---|
| committer | Hiroshiba Kazuyuki <hihokaruta@gmail.com> | 2018-01-14 07:40:07 +0900 |
| commit | 2be3f03adc5695f82c6ab86da780108f786ed014 (patch) | |
| tree | ae4b95aa3e45706598e66cc00ff5ad9f00ef97a9 /become_yukarin/data_struct.py | |
| parent | f9185301a22f1632b16dd5266197bb40cb7c302e (diff) | |
超解像
Diffstat (limited to 'become_yukarin/data_struct.py')
| -rw-r--r-- | become_yukarin/data_struct.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/become_yukarin/data_struct.py b/become_yukarin/data_struct.py index 73b9b3b..78c8cf3 100644 --- a/become_yukarin/data_struct.py +++ b/become_yukarin/data_struct.py @@ -60,3 +60,13 @@ class AcousticFeature(NamedTuple): mfcc=order + 1, voiced=1, ) + + +class LowHighSpectrogramFeature(NamedTuple): + low: numpy.ndarray + high: numpy.ndarray + + def validate(self): + assert self.low.ndim == 2 + assert self.high.ndim == 2 + assert self.low.shape == self.high.shape |
