20-bit VQ

This commit is contained in:
Jean-Marc Valin 2019-02-15 15:13:14 -05:00
parent 5be0e59ff0
commit 543ee94037
4 changed files with 469 additions and 4 deletions

View file

@ -153,6 +153,11 @@ def new_lpcnet_model(rnn_units1=384, rnn_units2=16, nb_used_features = 38, train
gru_out2, _ = rnn2(Concatenate()([gru_out1, rep(cfeat)]))
ulaw_prob = md(gru_out2)
rnn.trainable=False
rnn2.trainable=False
md.trainable=False
embed.Trainable=False
model = Model([pcm, feat, pitch], ulaw_prob)
model.rnn_units1 = rnn_units1
model.rnn_units2 = rnn_units2