mirror of
https://github.com/xiph/opus.git
synced 2025-06-04 17:47:42 +00:00
add convolution
This commit is contained in:
parent
fd9002e98e
commit
f884d7bf18
2 changed files with 12 additions and 5 deletions
|
@ -56,7 +56,7 @@ features = np.reshape(features, (nb_frames, feature_chunk_size, nb_features))
|
|||
features = features[:, :, :nb_used_features]
|
||||
|
||||
|
||||
in_data = np.concatenate([in_data, in_pitch], axis=-1)
|
||||
#in_data = np.concatenate([in_data, in_pitch], axis=-1)
|
||||
|
||||
#with h5py.File('in_data.h5', 'w') as f:
|
||||
# f.create_dataset('data', data=in_data[:50000, :, :])
|
||||
|
@ -66,4 +66,4 @@ checkpoint = ModelCheckpoint('lpcnet1e_{epoch:02d}.h5')
|
|||
|
||||
#model.load_weights('wavernn1c_01.h5')
|
||||
model.compile(optimizer=Adam(0.002, amsgrad=True, decay=2e-4), loss='sparse_categorical_crossentropy', metrics=['sparse_categorical_accuracy'])
|
||||
model.fit([in_data, features], out_data, batch_size=batch_size, epochs=30, validation_split=0.2, callbacks=[checkpoint])
|
||||
model.fit([in_data, in_pitch, features], out_data, batch_size=batch_size, epochs=30, validation_split=0.2, callbacks=[checkpoint])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue