Use inline ONNX (single-file), fix tail_stretch dtype
Browse files- models/acoustic_female.onnx +2 -2
- models/acoustic_male.onnx +2 -2
- models/bigvgan_base.onnx +2 -2
- python/__pycache__/infer_board.cpython-312.pyc +0 -0
- python/cn_frontend/__pycache__/__init__.cpython-312.pyc +0 -0
- python/cn_frontend/__pycache__/pinyin_to_sequence.cpython-312.pyc +0 -0
- python/cn_frontend/__pycache__/symbols.cpython-312.pyc +0 -0
- python/infer_board.py +1 -1
models/acoustic_female.onnx
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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):
|