mirror of
https://github.com/xiph/opus.git
synced 2025-06-01 16:17:42 +00:00
Use real features at the chunk edges rather than zeros
This commit is contained in:
parent
9fd3e45fd3
commit
b2940ed212
3 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue