コード例 #1
0
ファイル: f0_VAE.py プロジェクト: ZackHodari/average_prosody
 def train_data_sources(self):
     return {
         'n_frames': data_sources.TextSource('n_frames', sentence_level=True),
         'dur': data_sources.TextSource('dur'),
         'lab': data_sources.NumpyBinarySource('lab'),
         'counters': data_sources.NumpyBinarySource('counters'),
         'lf0': data_sources.NumpyBinarySource('lf0', use_deltas=True),
         'vuv': data_sources.NumpyBinarySource('vuv'),
     }
コード例 #2
0
ファイル: f0_RNN.py プロジェクト: lizzyllq/average_prosody
 def train_data_sources(self):
     return {
         'n_frames': data_sources.TextSource('n_frames'),
         'n_phones': data_sources.TextSource('n_phones'),
         'dur': data_sources.TextSource('dur', normalisation='mvn'),
         'lab': data_sources.NumpyBinarySource('lab', normalisation='minmax'),
         'counters': data_sources.NumpyBinarySource('counters', normalisation='minmax'),
         'lf0': data_sources.NumpyBinarySource('lf0', normalisation='mvn', use_deltas=True),
         'vuv': data_sources.NumpyBinarySource('vuv'),
     }
コード例 #3
0
 def train_data_sources(self):
     return {
         'n_frames': data_sources.TextSource('n_frames', sentence_level=True),
         'dur': data_sources.TextSource('dur'),
         'phones': data_sources.VocabSource('phones', vocab_file=self.phone_set_file),
         'counters': data_sources.NumpyBinarySource('counters'),
         'lf0': data_sources.NumpyBinarySource('lf0', use_deltas=True),
         'vuv': data_sources.NumpyBinarySource('vuv'),
         'n_segments': data_sources.TextSource('n_segments', sentence_level=True),
         'segment_n_frames': data_sources.TextSource('segment_n_frames'),
     }
コード例 #4
0
ファイル: f0_RNN.py プロジェクト: lizzyllq/average_prosody
    def valid_data_sources(self):
        sources = self.train_data_sources()
        sources['sp'] = data_sources.NumpyBinarySource('sp')
        sources['ap'] = data_sources.NumpyBinarySource('ap')

        return sources