From 0ef5ffb242ea7eab82b20c9a6858386c2bf56ceb Mon Sep 17 00:00:00 2001 From: JiehangXie Date: Mon, 6 Mar 2023 13:53:03 +0800 Subject: [PATCH] update run.sh (canton) --- examples/canton/tts3/local/paddle2onnx.sh | 23 ----------------------- examples/canton/tts3/run.sh | 4 ++-- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 examples/canton/tts3/local/paddle2onnx.sh diff --git a/examples/canton/tts3/local/paddle2onnx.sh b/examples/canton/tts3/local/paddle2onnx.sh deleted file mode 100644 index 66f57cb22..000000000 --- a/examples/canton/tts3/local/paddle2onnx.sh +++ /dev/null @@ -1,23 +0,0 @@ -train_output_path=$1 -model_dir=$2 -output_dir=$3 -model=$4 - -enable_dev_version=True - -model_name=${model%_*} -echo model_name: ${model_name} - -if [ ${model_name} = 'mb_melgan' ] ;then - enable_dev_version=False -fi - -mkdir -p ${train_output_path}/${output_dir} - -paddle2onnx \ - --model_dir ${train_output_path}/${model_dir} \ - --model_filename ${model}.pdmodel \ - --params_filename ${model}.pdiparams \ - --save_file ${train_output_path}/${output_dir}/${model}.onnx \ - --opset_version 11 \ - --enable_dev_version ${enable_dev_version} diff --git a/examples/canton/tts3/run.sh b/examples/canton/tts3/run.sh index 333b5c880..bfc564f02 100755 --- a/examples/canton/tts3/run.sh +++ b/examples/canton/tts3/run.sh @@ -50,10 +50,10 @@ if [ ${stage} -le 5 ] && [ ${stop_stage} -ge 5 ]; then if [[ -z "$version" || ${version} != '1.0.0' ]]; then pip install paddle2onnx==1.0.0 fi - ./local/paddle2onnx.sh ${train_output_path} inference inference_onnx fastspeech2_canton + ../../../csmsc/tts3/local/paddle2onnx.sh ${train_output_path} inference inference_onnx fastspeech2_canton # considering the balance between speed and quality, we recommend that you use hifigan as vocoder # ./local/paddle2onnx.sh ${train_output_path} inference inference_onnx pwgan_csmsc - # ./local/paddle2onnx.sh ${train_output_path} inference inference_onnx pwgan_aishell3 + ../../../csmsc/tts3/local/paddle2onnx.sh ${train_output_path} inference inference_onnx pwgan_aishell3 # ./local/paddle2onnx.sh ${train_output_path} inference inference_onnx mb_melgan_csmsc # ./local/paddle2onnx.sh ${train_output_path} inference inference_onnx hifigan_csmsc