From 2be3f03adc5695f82c6ab86da780108f786ed014 Mon Sep 17 00:00:00 2001 From: Hiroshiba Kazuyuki Date: Sun, 14 Jan 2018 07:40:07 +0900 Subject: 超解像 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- become_yukarin/data_struct.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'become_yukarin/data_struct.py') 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 -- cgit v1.2.3-70-g09d2