NTT123 commited on
Commit
495433d
1 Parent(s): 1559a52

sparse model

Browse files
.gitattributes CHANGED
@@ -28,3 +28,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
  pretrained_model_ljs_500k.ckpt filter=lfs diff=lfs merge=lfs -text
29
  wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt filter=lfs diff=lfs merge=lfs -text
30
  bazelisk-linux-amd64 filter=lfs diff=lfs merge=lfs -text
 
 
28
  pretrained_model_ljs_500k.ckpt filter=lfs diff=lfs merge=lfs -text
29
  wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt filter=lfs diff=lfs merge=lfs -text
30
  bazelisk-linux-amd64 filter=lfs diff=lfs merge=lfs -text
31
+ wavegru.ckpt filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import os
2
 
3
  ## build wavegru-cpp
 
4
  os.system("./bazelisk-linux-amd64 build wavegru_mod -c opt --copt=-march=native")
5
 
6
 
@@ -14,9 +15,7 @@ alphabet, tacotron_net, tacotron_config = load_tacotron_model(
14
  )
15
 
16
 
17
- wavegru_config, wavegru_net = load_wavegru_net(
18
- "./wavegru.yaml", "./wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt"
19
- )
20
 
21
  wave_cpp_weight_mask = extract_weight_mask(wavegru_net)
22
  wavecpp = load_wavegru_cpp(wave_cpp_weight_mask)
@@ -24,7 +23,9 @@ wavecpp = load_wavegru_cpp(wave_cpp_weight_mask)
24
 
25
  def speak(text):
26
  mel = text_to_mel(tacotron_net, text, alphabet, tacotron_config)
 
27
  y = mel_to_wav(wavegru_net, wavecpp, mel, wavegru_config)
 
28
  return 24_000, y
29
 
30
 
 
1
  import os
2
 
3
  ## build wavegru-cpp
4
+ os.system("./bazelisk-linux-amd64 clean --expunge")
5
  os.system("./bazelisk-linux-amd64 build wavegru_mod -c opt --copt=-march=native")
6
 
7
 
 
15
  )
16
 
17
 
18
+ wavegru_config, wavegru_net = load_wavegru_net("./wavegru.yaml", "./wavegru.ckpt")
 
 
19
 
20
  wave_cpp_weight_mask = extract_weight_mask(wavegru_net)
21
  wavecpp = load_wavegru_cpp(wave_cpp_weight_mask)
 
23
 
24
  def speak(text):
25
  mel = text_to_mel(tacotron_net, text, alphabet, tacotron_config)
26
+ print(mel.shape)
27
  y = mel_to_wav(wavegru_net, wavecpp, mel, wavegru_config)
28
+ print(y.shape)
29
  return 24_000, y
30
 
31
 
wavegru_vocoder_tpu_gta_preemphasis_pruning_v7_0040000.ckpt → wavegru.ckpt RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c09ed822c5daac0afbd19e8ba4e0ded26dd5732e0efd13ce193c3f54c4e63f54
3
- size 56479599
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4130c34ca52f7e6061c54818a5af2d111e73056e73e46c87fcedf944e4941bfd
3
+ size 56479601