mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 13:52:11 +00:00
Now there's human voice audio!!!! WOO!
This commit is contained in:
1 parent
57cbe02d7d
commit
f051ab76a0
1 file changed
+7
-3
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user