summaryrefslogtreecommitdiff
path: root/become_yukarin/data_struct.py
diff options
context:
space:
mode:
authorHiroshiba Kazuyuki <hihokaruta@gmail.com>2018-01-14 07:40:07 +0900
committerHiroshiba Kazuyuki <hihokaruta@gmail.com>2018-01-14 07:40:07 +0900
commit2be3f03adc5695f82c6ab86da780108f786ed014 (patch)
treeae4b95aa3e45706598e66cc00ff5ad9f00ef97a9 /become_yukarin/data_struct.py
parentf9185301a22f1632b16dd5266197bb40cb7c302e (diff)
超解像
Diffstat (limited to 'become_yukarin/data_struct.py')
-rw-r--r--become_yukarin/data_struct.py10
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