Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
07279848
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
206
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
07279848
编写于
11月 09, 2022
作者:
小湉湉
提交者:
GitHub
11月 09, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add export2lite, test=tts (#2636)
上级
b7312e9f
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
111 addition
and
1 deletion
+111
-1
examples/aishell3/tts3/local/export2lite.sh
examples/aishell3/tts3/local/export2lite.sh
+1
-0
examples/aishell3/tts3/run.sh
examples/aishell3/tts3/run.sh
+10
-0
examples/csmsc/tts2/local/export2lite.sh
examples/csmsc/tts2/local/export2lite.sh
+1
-0
examples/csmsc/tts2/run.sh
examples/csmsc/tts2/run.sh
+13
-0
examples/csmsc/tts3/local/export2lite.sh
examples/csmsc/tts3/local/export2lite.sh
+18
-0
examples/csmsc/tts3/run.sh
examples/csmsc/tts3/run.sh
+13
-0
examples/csmsc/tts3/run_cnndecoder.sh
examples/csmsc/tts3/run_cnndecoder.sh
+31
-1
examples/ljspeech/tts3/local/export2lite.sh
examples/ljspeech/tts3/local/export2lite.sh
+1
-0
examples/ljspeech/tts3/run.sh
examples/ljspeech/tts3/run.sh
+11
-0
examples/vctk/tts3/local/export2lite.sh
examples/vctk/tts3/local/export2lite.sh
+1
-0
examples/vctk/tts3/run.sh
examples/vctk/tts3/run.sh
+11
-0
未找到文件。
examples/aishell3/tts3/local/export2lite.sh
0 → 120000
浏览文件 @
07279848
../../../csmsc/tts3/local/export2lite.sh
\ No newline at end of file
examples/aishell3/tts3/run.sh
浏览文件 @
07279848
...
...
@@ -58,3 +58,13 @@ fi
if
[
${
stage
}
-le
6
]
&&
[
${
stop_stage
}
-ge
6
]
;
then
./local/ort_predict.sh
${
train_output_path
}
fi
if
[
${
stage
}
-le
7
]
&&
[
${
stop_stage
}
-ge
7
]
;
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_aishell3 x86
# x86 ok, arm Segmentation fault
# ./local/export2lite.sh ${train_output_path} inference pdlite pwgan_aishell3 x86
# x86 ok, arm ok
./local/export2lite.sh
${
train_output_path
}
inference pdlite hifigan_aishell3 x86
fi
examples/csmsc/tts2/local/export2lite.sh
0 → 120000
浏览文件 @
07279848
../../tts3/local/export2lite.sh
\ No newline at end of file
examples/csmsc/tts2/run.sh
浏览文件 @
07279848
...
...
@@ -60,3 +60,16 @@ fi
if
[
${
stage
}
-le
6
]
&&
[
${
stop_stage
}
-ge
6
]
;
then
./local/ort_predict.sh
${
train_output_path
}
fi
# must run after stage 3 (which stage generated static models)
if
[
${
stage
}
-le
7
]
&&
[
${
stop_stage
}
-ge
7
]
;
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 speedyspeech_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
examples/csmsc/tts3/local/export2lite.sh
0 → 100755
浏览文件 @
07279848
train_output_path
=
$1
model_dir
=
$2
output_dir
=
$3
model
=
$4
valid_targets
=
$5
model_name
=
${
model
%_*
}
echo
model_name:
${
model_name
}
mkdir
-p
${
train_output_path
}
/
${
output_dir
}
paddle_lite_opt
\
--model_file
${
train_output_path
}
/
${
model_dir
}
/
${
model
}
.pdmodel
\
--param_file
${
train_output_path
}
/
${
model_dir
}
/
${
model
}
.pdiparams
\
--optimize_out
${
train_output_path
}
/
${
output_dir
}
/
${
model
}
_
${
valid_targets
}
\
--valid_targets
${
valid_targets
}
examples/csmsc/tts3/run.sh
浏览文件 @
07279848
...
...
@@ -61,3 +61,16 @@ fi
if
[
${
stage
}
-le
6
]
&&
[
${
stop_stage
}
-ge
6
]
;
then
./local/ort_predict.sh
${
train_output_path
}
fi
# must run after stage 3 (which stage generated static models)
if
[
${
stage
}
-le
7
]
&&
[
${
stop_stage
}
-ge
7
]
;
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
examples/csmsc/tts3/run_cnndecoder.sh
浏览文件 @
07279848
...
...
@@ -75,7 +75,6 @@ if [ ${stage} -le 8 ] && [ ${stop_stage} -ge 8 ]; then
fi
# paddle2onnx streaming
if
[
${
stage
}
-le
9
]
&&
[
${
stop_stage
}
-ge
9
]
;
then
# install paddle2onnx
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
}
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
examples/ljspeech/tts3/local/export2lite.sh
0 → 120000
浏览文件 @
07279848
../../../csmsc/tts3/local/export2lite.sh
\ No newline at end of file
examples/ljspeech/tts3/run.sh
浏览文件 @
07279848
...
...
@@ -59,3 +59,14 @@ fi
if
[
${
stage
}
-le
6
]
&&
[
${
stop_stage
}
-ge
6
]
;
then
./local/ort_predict.sh
${
train_output_path
}
fi
# must run after stage 3 (which stage generated static models)
if
[
${
stage
}
-le
7
]
&&
[
${
stop_stage
}
-ge
7
]
;
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_ljspeech x86
# x86 ok, arm Segmentation fault
# ./local/export2lite.sh ${train_output_path} inference pdlite pwgan_ljspeech x86
# x86 ok, arm ok
# ./local/export2lite.sh ${train_output_path} inference pdlite hifigan_ljspeech x86
fi
\ No newline at end of file
examples/vctk/tts3/local/export2lite.sh
0 → 120000
浏览文件 @
07279848
../../../csmsc/tts3/local/export2lite.sh
\ No newline at end of file
examples/vctk/tts3/run.sh
浏览文件 @
07279848
...
...
@@ -58,3 +58,14 @@ fi
if
[
${
stage
}
-le
6
]
&&
[
${
stop_stage
}
-ge
6
]
;
then
./local/ort_predict.sh
${
train_output_path
}
fi
# must run after stage 3 (which stage generated static models)
if
[
${
stage
}
-le
7
]
&&
[
${
stop_stage
}
-ge
7
]
;
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_vctk x86
# x86 ok, arm Segmentation fault
# ./local/export2lite.sh ${train_output_path} inference pdlite pwgan_vctk x86
# x86 ok, arm ok
# ./local/export2lite.sh ${train_output_path} inference pdlite hifigan_vctk x86
fi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录