From cf71104424ca3234da06abf4ce6e5794fda594c5 Mon Sep 17 00:00:00 2001 From: Hiroshiba Kazuyuki Date: Fri, 24 Nov 2017 06:43:24 +0900 Subject: atr subset scirpts --- become_yukarin/data_struct.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'become_yukarin/data_struct.py') diff --git a/become_yukarin/data_struct.py b/become_yukarin/data_struct.py index 786dd7e..73b9b3b 100644 --- a/become_yukarin/data_struct.py +++ b/become_yukarin/data_struct.py @@ -23,7 +23,16 @@ class AcousticFeature(NamedTuple): spectrogram=self.spectrogram.astype(dtype), aperiodicity=self.aperiodicity.astype(dtype), mfcc=self.mfcc.astype(dtype), - voiced=self.mfcc.astype(dtype), + voiced=self.voiced.astype(dtype), + ) + + def astype_only_float(self, dtype): + return AcousticFeature( + f0=self.f0.astype(dtype), + spectrogram=self.spectrogram.astype(dtype), + aperiodicity=self.aperiodicity.astype(dtype), + mfcc=self.mfcc.astype(dtype), + voiced=self.voiced, ) def validate(self): -- cgit v1.2.3-70-g09d2