|
|
@ -75,7 +75,6 @@ if [ ${stage} -le 8 ] && [ ${stop_stage} -ge 8 ]; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# paddle2onnx streaming
|
|
|
|
# paddle2onnx streaming
|
|
|
|
|
|
|
|
|
|
|
|
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}')
|
|
|
@ -97,3 +96,34 @@ if [ ${stage} -le 10 ] && [ ${stop_stage} -ge 10 ]; then
|
|
|
|
./local/ort_predict_streaming.sh ${train_output_path}
|
|
|
|
./local/ort_predict_streaming.sh ${train_output_path}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# must run after stage 3 (which stage generated static models)
|
|
|
|
|
|
|
|
if [ ${stage} -le 11 ] && [ ${stop_stage} -ge 11 ]; then
|
|
|
|
|
|
|
|
# This model is not supported, because 3 ops are not supported on 'arm'. These unsupported ops are: 'round, set_value, share_data'.
|
|
|
|
|
|
|
|
# This model is not supported, because 4 ops are not supported on 'x86'. These unsupported ops are: 'matmul_v2, round, set_value, share_data'.
|
|
|
|
|
|
|
|
./local/export2lite.sh ${train_output_path} inference pdlite fastspeech2_csmsc x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference pdlite pwgan_csmsc x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference pdlite mb_melgan_csmsc x86
|
|
|
|
|
|
|
|
# x86 ok, arm ok
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference pdlite hifigan_csmsc x86
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# must run after stage 5 (which stage generated static models)
|
|
|
|
|
|
|
|
if [ ${stage} -le 12 ] && [ ${stop_stage} -ge 12 ]; then
|
|
|
|
|
|
|
|
# streaming acoustic model
|
|
|
|
|
|
|
|
# This model is not supported, because 3 ops are not supported on 'arm'. These unsupported ops are: 'round, set_value, share_data'.
|
|
|
|
|
|
|
|
# This model is not supported, because 4 ops are not supported on 'x86'. These unsupported ops are: 'matmul_v2, round, set_value, share_data'.
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference pdlite fastspeech2_csmsc x86
|
|
|
|
|
|
|
|
./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming fastspeech2_csmsc_am_encoder_infer x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming fastspeech2_csmsc_am_decoder x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming fastspeech2_csmsc_am_postnet x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming pwgan_csmsc x86
|
|
|
|
|
|
|
|
# x86 ok, arm Segmentation fault
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming mb_melgan_csmsc x86
|
|
|
|
|
|
|
|
# x86 ok, arm ok
|
|
|
|
|
|
|
|
# ./local/export2lite.sh ${train_output_path} inference_streaming pdlite_streaming hifigan_csmsc x86
|
|
|
|
|
|
|
|
fi
|
|
|
|