NTT123 commited on
Commit
e128a73
1 Parent(s): c26f780
.gitattributes CHANGED
@@ -29,3 +29,4 @@ bazelisk-linux-amd64 filter=lfs diff=lfs merge=lfs -text
29
  wavegru_mod.so filter=lfs diff=lfs merge=lfs -text
30
  pretrained_model_ljs_600k.ckpt filter=lfs diff=lfs merge=lfs -text
31
  wavegru_vocoder_1024_v3_1310000.ckpt filter=lfs diff=lfs merge=lfs -text
 
 
29
  wavegru_mod.so filter=lfs diff=lfs merge=lfs -text
30
  pretrained_model_ljs_600k.ckpt filter=lfs diff=lfs merge=lfs -text
31
  wavegru_vocoder_1024_v3_1310000.ckpt filter=lfs diff=lfs merge=lfs -text
32
+ wavegru_vocoder_1024_v3_1330000.ckpt filter=lfs diff=lfs merge=lfs -text
extract_model.py CHANGED
@@ -1,5 +1,5 @@
1
  import pickle
2
 
3
- dic = pickle.load(open("./wavegru_vocoder_1024_v3_1310000.ckpt", "rb"))
4
  del dic["optim_state_dict"]
5
- pickle.dump(dic, open("./wavegru_vocoder_1024_v3_1310000.ckpt", "wb"))
 
1
  import pickle
2
 
3
+ dic = pickle.load(open("./wavegru_vocoder_1024_v3_1330000.ckpt", "rb"))
4
  del dic["optim_state_dict"]
5
+ pickle.dump(dic, open("./wavegru_vocoder_1024_v3_1330000.ckpt", "wb"))
inference.py CHANGED
@@ -67,7 +67,7 @@ def mel_to_wav(net, netcpp, mel, config):
67
  if len(mel.shape) == 2:
68
  mel = mel[None]
69
  pad = config["num_pad_frames"] // 2 + 2
70
- mel = np.pad(mel, [(0, 0), (pad, pad), (0, 0)], mode="edge")
71
  ft = wavegru_inference(net, mel)
72
  ft = jax.device_get(ft[0])
73
  wav = netcpp.inference(ft, 1.0)
 
67
  if len(mel.shape) == 2:
68
  mel = mel[None]
69
  pad = config["num_pad_frames"] // 2 + 2
70
+ mel = np.pad(mel, [(0, 0), (pad, pad), (0, 0)], mode="reflect")
71
  ft = wavegru_inference(net, mel)
72
  ft = jax.device_get(ft[0])
73
  wav = netcpp.inference(ft, 1.0)
wavegru_vocoder_1024_v3_1310000.ckpt → wavegru_vocoder_1024_v3_1330000.ckpt RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:daf1d772c67ebbe875429fe358429f37776e56139417058738253e0cbb787e06
3
  size 69717674
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0806dc3002458f8468041db482757a21d362648ec1676e672306c20ee7507119
3
  size 69717674