removed debug prints in dump_lpcnet.py

This commit is contained in:
janpbuethe 2022-09-07 09:03:46 +00:00
parent 60450472a6
commit f3c738d45f

View file

@ -274,11 +274,7 @@ if __name__ == "__main__":
model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['sparse_categorical_accuracy'])
#model.summary()
print(get_parameter(model, 'lpc_gamma'))
model.load_weights(filename, by_name=True)
print(get_parameter(model, 'lpc_gamma'))
cfile = args.nnet_source
hfile = args.nnet_header
@ -300,8 +296,6 @@ if __name__ == "__main__":
hf.write('/* This is *not* an end-to-end model */\n')
hf.write('/* #define END2END */\n\n')
print([weight.name for weight in model.weights])
# LPC weighting factor
if type(args.lpc_gamma) == type(None):
lpc_gamma = get_parameter(model, 'lpc_gamma', 1)