|
|
@ -59,8 +59,8 @@ fi
|
|
|
|
if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
|
|
|
|
if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
|
|
|
|
# install paddle2onnx
|
|
|
|
# install paddle2onnx
|
|
|
|
version=$(echo `pip list |grep "paddle2onnx"` |awk -F" " '{print $2}')
|
|
|
|
version=$(echo `pip list |grep "paddle2onnx"` |awk -F" " '{print $2}')
|
|
|
|
if [[ -z "$version" || ${version} != '0.9.8' ]]; then
|
|
|
|
if [[ -z "$version" || ${version} != '1.0.0' ]]; then
|
|
|
|
pip install paddle2onnx==0.9.8
|
|
|
|
pip install paddle2onnx==1.0.0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
./local/paddle2onnx.sh ${train_output_path} inference inference_onnx fastspeech2_csmsc
|
|
|
|
./local/paddle2onnx.sh ${train_output_path} inference inference_onnx fastspeech2_csmsc
|
|
|
|
# considering the balance between speed and quality, we recommend that you use hifigan as vocoder
|
|
|
|
# considering the balance between speed and quality, we recommend that you use hifigan as vocoder
|
|
|
@ -79,8 +79,8 @@ fi
|
|
|
|
if [ ${stage} -le 9 ] && [ ${stop_stage} -ge 9 ]; then
|
|
|
|
if [ ${stage} -le 9 ] && [ ${stop_stage} -ge 9 ]; then
|
|
|
|
# install paddle2onnx
|
|
|
|
# install paddle2onnx
|
|
|
|
version=$(echo `pip list |grep "paddle2onnx"` |awk -F" " '{print $2}')
|
|
|
|
version=$(echo `pip list |grep "paddle2onnx"` |awk -F" " '{print $2}')
|
|
|
|
if [[ -z "$version" || ${version} != '0.9.8' ]]; then
|
|
|
|
if [[ -z "$version" || ${version} != '1.0.0' ]]; then
|
|
|
|
pip install paddle2onnx==0.9.8
|
|
|
|
pip install paddle2onnx==1.0.0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# streaming acoustic model
|
|
|
|
# streaming acoustic model
|
|
|
|
./local/paddle2onnx.sh ${train_output_path} inference_streaming inference_onnx_streaming fastspeech2_csmsc_am_encoder_infer
|
|
|
|
./local/paddle2onnx.sh ${train_output_path} inference_streaming inference_onnx_streaming fastspeech2_csmsc_am_encoder_infer
|
|
|
|