Use real features at the chunk edges rather than zeros

This commit is contained in:
Jean-Marc Valin 2019-01-22 16:55:02 -05:00
parent 9fd3e45fd3
commit b2940ed212
3 changed files with 13 additions and 7 deletions

View file

@ -40,7 +40,7 @@ config = tf.ConfigProto()
config.gpu_options.per_process_gpu_memory_fraction = 0.2
set_session(tf.Session(config=config))
model, enc, dec = lpcnet.new_lpcnet_model()
model, enc, dec = lpcnet.new_lpcnet_model(use_gpu=False)
model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['sparse_categorical_accuracy'])
#model.summary()
@ -63,7 +63,7 @@ periods = (.1 + 50*features[:,:,36:37]+100).astype('int16')
model.load_weights('lpcnet20g_384_10_G16_02.h5')
model.load_weights('lpcnet20h_384_10_G16_80.h5')
order = 16