diff options
| author | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2017-11-24 06:43:24 +0900 |
|---|---|---|
| committer | Hiroshiba Kazuyuki <kazuyuki_hiroshiba@dwango.co.jp> | 2017-11-28 15:32:38 +0700 |
| commit | cf71104424ca3234da06abf4ce6e5794fda594c5 (patch) | |
| tree | 51332c400fda036c3f16c1863ac0491e6ad00673 /become_yukarin/data_struct.py | |
| parent | 9f87a74de09e38f9d8f3e7ebb5fd26fac44a3b0e (diff) | |
atr subset scirpts
Diffstat (limited to 'become_yukarin/data_struct.py')
| -rw-r--r-- | become_yukarin/data_struct.py | 11 |
1 files changed, 10 insertions, 1 deletions
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): |
