inoryQwQ commited on
Commit
3ad46ce
·
verified ·
1 Parent(s): ef577cc

Use inline ONNX (single-file), fix tail_stretch dtype

Browse files
models/acoustic_female.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8264431335447b241d0e6f30a46e9f47e94b93285fc5ee269f8676a8a3157c55
3
- size 990534
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0e332aea595275f1a5c87d3d5b6a472fd32a596e48be3951565608b496d1ceb
3
+ size 36817654
models/acoustic_male.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5a250387759f7417c15d236d9e75201c012d3c9bacef1a4ecf44ef33ca9dc230
3
- size 989998
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bddddd1d880b97de7ef8b2ea50586dbe961ffc6e17936c1c79253e96bee43f9
3
+ size 36817655
models/bigvgan_base.onnx CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77d1fe4b14242776253713694f8d8abd2189551eb7d8d639f5893fc1553f61ae
3
- size 1589797
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7bc1a9afd9643fc56643c5d84c47f5da7ac6ba956f802934bcc76f065b82eeaa
3
+ size 58279470
python/__pycache__/infer_board.cpython-312.pyc ADDED
Binary file (13.6 kB). View file
 
python/cn_frontend/__pycache__/__init__.cpython-312.pyc ADDED
Binary file (389 Bytes). View file
 
python/cn_frontend/__pycache__/pinyin_to_sequence.cpython-312.pyc ADDED
Binary file (1.27 kB). View file
 
python/cn_frontend/__pycache__/symbols.cpython-312.pyc ADDED
Binary file (1.04 kB). View file
 
python/infer_board.py CHANGED
@@ -140,7 +140,7 @@ def tail_stretch(mel, n_old=TAIL_STRETCH_OLD, n_new=TAIL_STRETCH_NEW):
140
  xo = np.linspace(0, 1, n_old)
141
  xn = np.linspace(0, 1, n_new)
142
  nt = np.stack([np.interp(xn, xo, tail[0, c]) for c in range(mel.shape[1])])
143
- return np.concatenate([mel[:, :, :-n_old], nt[None]], axis=2)
144
 
145
 
146
  def vocoder_chunked(vocoder, mel):
 
140
  xo = np.linspace(0, 1, n_old)
141
  xn = np.linspace(0, 1, n_new)
142
  nt = np.stack([np.interp(xn, xo, tail[0, c]) for c in range(mel.shape[1])])
143
+ return np.concatenate([mel[:, :, :-n_old], nt[None].astype(np.float32)], axis=2)
144
 
145
 
146
  def vocoder_chunked(vocoder, mel):