Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TTS][Android Demo]💡Paddle-Lite opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite #2858

Closed
Vincent2Liu opened this issue Jan 31, 2023 · 10 comments
Assignees

Comments

@Vincent2Liu
Copy link

Vincent2Liu commented Jan 31, 2023

在android的TTS中准备使用中英混合的声学模型fastspeech2_mix_static_0.2.0,在用OPT工具将其转换为paddlelite格式的过程中报错:
Error: This model is not supported, because 3 ops are not supported on 'arm'. These unsupported ops are: 'round, set_value, share_data',更换paddle_lite_opt为最新版本后转换也不成功,请问是ARM架构cpu本身对这三个算子不支持吗,还是说是模型的问题,请教?

@Vincent2Liu
Copy link
Author

@yt605155624

@Vincent2Liu Vincent2Liu changed the title [TTS]XXXX [TTS]opt工具进行模型转换报错 Jan 31, 2023
@yt605155624
Copy link
Collaborator

yt605155624 commented Jan 31, 2023

如代码注释所述,

if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
请自行编译 develop 版本的 Paddle-Lite,目前 Paddle-Lite 的发行版(v2.12)没有支持这 3 个算子

 ./lite/tools/build_linux.sh --arch=x86 --with_python=ON --with_extra=ON

@Vincent2Liu
Copy link
Author

如代码注释所述,

if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then

请自行编译 develop 版本的 Paddle-Lite,目前 Paddle-Lite 的发行版(v2.12)没有支持这 3 个算子

 ./lite/tools/build_linux.sh --arch=x86 --with_python=ON --with_extra=ON

develop版本的paddlelite是支持这三个算子的是吗

@Vincent2Liu
Copy link
Author

Vincent2Liu commented Jan 31, 2023

如代码注释所述,

if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then

请自行编译 develop 版本的 Paddle-Lite,目前 Paddle-Lite 的发行版(v2.12)没有支持这 3 个算子

 ./lite/tools/build_linux.sh --arch=x86 --with_python=ON --with_extra=ON

我的valid_target是arm,这个https://www.paddlepaddle.org.cn/lite/v2.12/user_guides/model_optimize_tool.html 里面没找到编译develop版本的paddlelite的相关信息呢,能否告知一下具体的位置,多谢

@Vincent2Liu
Copy link
Author

@yt605155624

@yt605155624
Copy link
Collaborator

有,请你仔细看下 :)

@Vincent2Liu
Copy link
Author

有,请你仔细看下 :)

通过源码编译OPT工具时,在执行./lite/tools/build.sh build_optimize_tool命令时报错,如下所示
20230201194800167
请问报错是什么原因呢

@Vincent2Liu
Copy link
Author

@yt605155624

@yt605155624
Copy link
Collaborator

yt605155624 commented Feb 2, 2023

看起来是你的代理有问题,Paddle-Lite 编译相关问题请移步 Paddle-Lite issue 区

@yt605155624 yt605155624 changed the title [TTS]opt工具进行模型转换报错 [TTS]💡opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite Feb 15, 2023
@yt605155624 yt605155624 changed the title [TTS]💡opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite [TTS]💡Paddle-Lite opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite Feb 15, 2023
@yt605155624 yt605155624 changed the title [TTS]💡Paddle-Lite opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite [TTS][Android Demo]💡Paddle-Lite opt工具进行模型转换报错 -> 自行编译 develop 版本的 Paddle-Lite Feb 15, 2023
@dota2015
Copy link

dota2015 commented Dec 5, 2023

请问解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants