|
|
@ -21,7 +21,7 @@ sudo yum install cmake wget tar unzip
|
|
|
|
|
|
|
|
|
|
|
|
### 下载Paddle Lite库文件和模型文件
|
|
|
|
### 下载Paddle Lite库文件和模型文件
|
|
|
|
|
|
|
|
|
|
|
|
预编译的二进制使用与安卓Demo版本相同的Paddle-Lite推理库([Paddle-Lite:68b66fd35](https://github.com/PaddlePaddle/Paddle-Lite/tree/68b66fd35))和模型([fs2cnn_mbmelgan_cpu_v1.3.0](https://paddlespeech.bj.bcebos.com/demos/TTSAndroid/fs2cnn_mbmelgan_cpu_v1.3.0.tar.gz))。
|
|
|
|
预编译的二进制使用与安卓Demo版本相同的Paddle-Lite推理库([Paddle-Lite:68b66fd35](https://github.com/PaddlePaddle/Paddle-Lite/tree/68b66fd356c875c92167d311ad458e6093078449))和模型([fs2cnn_mbmelgan_cpu_v1.3.0](https://paddlespeech.bj.bcebos.com/demos/TTSAndroid/fs2cnn_mbmelgan_cpu_v1.3.0.tar.gz))。
|
|
|
|
|
|
|
|
|
|
|
|
可用以下命令下载:
|
|
|
|
可用以下命令下载:
|
|
|
|
|
|
|
|
|
|
|
@ -55,7 +55,11 @@ cd PaddleSpeech/demos/TTSArmLinux
|
|
|
|
|
|
|
|
|
|
|
|
预编译的二进制兼容 Ubuntu 16.04 到 20.04,如果你的发行版与其不兼容,可以自行从源代码编译。
|
|
|
|
预编译的二进制兼容 Ubuntu 16.04 到 20.04,如果你的发行版与其不兼容,可以自行从源代码编译。
|
|
|
|
|
|
|
|
|
|
|
|
注意 [Paddle-Lite 2.12](https://github.com/PaddlePaddle/Paddle-Lite/releases/tag/v2.12) 与TTS不兼容,无法导出或运行TTS模型,需要使用更新的版本(比如`develop`分支中的代码)。
|
|
|
|
注意,我们只能保证 [Paddle-Lite:68b66fd35](https://github.com/PaddlePaddle/Paddle-Lite/tree/68b66fd356c875c92167d311ad458e6093078449) 与通过`download.sh`下载的模型兼容。
|
|
|
|
|
|
|
|
如果使用其他版本的Paddle Lite库,可能需要用对应版本的opt工具重新导出模型。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
此外,[Paddle-Lite 2.12](https://github.com/PaddlePaddle/Paddle-Lite/releases/tag/v2.12) 与TTS不兼容,无法导出或运行TTS模型,需要使用更新的版本(比如`develop`分支中的代码)。
|
|
|
|
|
|
|
|
但`develop`分支中的代码可能与通过`download.sh`下载的模型不兼容,Demo运行起来可能会崩溃。
|
|
|
|
|
|
|
|
|
|
|
|
#### 安装Paddle Lite的编译依赖
|
|
|
|
#### 安装Paddle Lite的编译依赖
|
|
|
|
|
|
|
|
|
|
|
@ -68,15 +72,16 @@ sudo yum groupinstall "Development Tools"
|
|
|
|
sudo yum install cmake git python
|
|
|
|
sudo yum install cmake git python
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### 编译Paddle Lite
|
|
|
|
#### 编译Paddle Lite 68b66fd35
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
git clone -b develop https://github.com/PaddlePaddle/Paddle-Lite.git
|
|
|
|
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
|
|
|
cd Paddle-Lite
|
|
|
|
cd Paddle-Lite
|
|
|
|
|
|
|
|
git checkout 68b66fd356c875c92167d311ad458e6093078449
|
|
|
|
./lite/tools/build_linux.sh --with_extra=ON
|
|
|
|
./lite/tools/build_linux.sh --with_extra=ON
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
编译完成后,打开Demo的 [config.sh](config.sh),把 `PADDLE_LITE_DIR` 改成以下值即可(注意替换`/path/to/`为实际目录):
|
|
|
|
编译完成后,打开Demo的[config.sh](config.sh),把 `PADDLE_LITE_DIR` 改成以下值即可(注意替换`/path/to/`为实际目录):
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
PADDLE_LITE_DIR="/path/to/Paddle-Lite/build.lite.linux.${ARM_ABI}.gcc/inference_lite_lib.armlinux.${ARM_ABI}/cxx"
|
|
|
|
PADDLE_LITE_DIR="/path/to/Paddle-Lite/build.lite.linux.${ARM_ABI}.gcc/inference_lite_lib.armlinux.${ARM_ABI}/cxx"
|
|
|
|