Now there's human voice audio!!!! WOO!

This commit is contained in:
Brandon Thomas committed 2019-12-26 06:44:40 -05:00
1 parent 57cbe02d7d
commit f051ab76a0
1 file changed
+7 -3
+7 -3
View File
@@ -188,8 +188,12 @@ module.load_state_dict(melgan_model['model_g'])
#module.eval(inference=False)
print('JIT model...')
container = torch.jit.script(module)
mel_file = '/home/bt/dev/voder/data/mels/LJ002-0320.mel'
example = torch.load(mel_file, map_location=torch.device('cpu'))
traced_script_module = torch.jit.trace(module, example)
traced_script_module.save("container.pt")
#container = torch.jit.script(module)
print('Saving model...')
container.save("container.pt")
#print('Saving model...')
#container.save("container.pt")