File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
paddlespeech/t2s/models/wavernn Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,6 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
109
109
--lang=zh \
110
110
--text=${BIN_DIR} /../sentences.txt \
111
111
--output_dir=${train_output_path} /test_e2e \
112
- --phones_dict=dump/phone_id_map.txt # \
113
- # --inference_dir=${train_output_path}/inference
112
+ --phones_dict=dump/phone_id_map.txt \
113
+ --inference_dir=${train_output_path} /inference
114
114
fi
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ The pretrained model can be downloaded here:
114
114
115
115
The static model can be downloaded here:
116
116
- [ wavernn_csmsc_static_0.2.0.zip] ( https://paddlespeech.bj.bcebos.com/Parakeet/released_models/wavernn/wavernn_csmsc_static_0.2.0.zip )
117
+ - [ wavernn_csmsc_static_1.0.0.zip] ( https://paddlespeech.bj.bcebos.com/Parakeet/released_models/wavernn/wavernn_csmsc_static_1.0.0.zip ) (fix bug for paddle 2.3)
117
118
118
119
Model | Step | eval/loss
119
120
:-------------:|:------------:| :------------:
Original file line number Diff line number Diff line change @@ -360,7 +360,9 @@ def generate(self,
360
360
x = sample .transpose ([1 , 0 , 2 ])
361
361
362
362
elif self .mode == 'RAW' :
363
- posterior = F .softmax (logits , axis = 1 )
363
+ # fix bug for paddle 2.3, see https://github.com/PaddlePaddle/Paddle/commit/01f606b4f1ca3e184a59111084ed460ee0798a5a
364
+ # posterior = F.softmax(logits, axis=1)
365
+ posterior = logits
364
366
distrib = paddle .distribution .Categorical (posterior )
365
367
# corresponding operate [np.floor((fx + 1) / 2 * mu + 0.5)] in enocde_mu_law
366
368
# distrib.sample([1])[0].cast('float32'): [0, 2**bits-1]
You can’t perform that action at this time.
0 commit comments