Skip to content
Snippets Groups Projects
Commit 60790784 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

training

parent 9b8d72ea
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ del pred
del in_exc
# dump models to disk as we go
checkpoint = ModelCheckpoint('lpcnet24g_384_10_G16_{epoch:02d}.h5')
checkpoint = ModelCheckpoint('lpcnet30_384_10_G16_{epoch:02d}.h5')
#Set this to True to adapt an existing model (e.g. on new data)
adaptation = False
......@@ -121,4 +121,5 @@ else:
decay = 5e-5
model.compile(optimizer=Adam(lr, amsgrad=True, decay=decay), loss='sparse_categorical_crossentropy')
model.save_weights('lpcnet30_384_10_G16_00.h5');
model.fit([in_data, features, periods], out_exc, batch_size=batch_size, epochs=nb_epochs, validation_split=0.0, callbacks=[checkpoint, sparsify])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment