Merge pull request #1129 from LDOUBLEV/fixocr
modify lite readme doc,test=document_fix
This commit is contained in:
commit
00b4cba431
|
@ -34,8 +34,8 @@ Paddle Lite是飞桨轻量化推理引擎,为手机、IOT端提供高效推理
|
||||||
```
|
```
|
||||||
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
||||||
cd Paddle-Lite
|
cd Paddle-Lite
|
||||||
# 切换到Paddle-Lite develop稳定分支
|
# 切换到Paddle-Lite release/v2.7 稳定分支
|
||||||
git checkout develop
|
git checkout release/v2.7
|
||||||
./lite/tools/build_android.sh --arch=armv8 --with_cv=ON --with_extra=ON
|
./lite/tools/build_android.sh --arch=armv8 --with_cv=ON --with_extra=ON
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -84,9 +84,9 @@ Paddle-Lite 提供了多种策略来自动优化原始的模型,其中包括
|
||||||
|
|
||||||
|模型版本|模型简介|模型大小|检测模型|文本方向分类模型|识别模型|Paddle-Lite版本|
|
|模型版本|模型简介|模型大小|检测模型|文本方向分类模型|识别模型|Paddle-Lite版本|
|
||||||
|-|-|-|-|-|-|-|
|
|-|-|-|-|-|-|-|
|
||||||
|V1.1|超轻量中文OCR 移动端模型|8.1M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_det_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_cls_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_rec_opt.nb)|develop|
|
|V1.1|超轻量中文OCR 移动端模型|8.1M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_det_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_cls_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_rec_opt.nb)|v2.7|
|
||||||
|【slim】V1.1|超轻量中文OCR 移动端模型|3.5M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_det_prune_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_cls_quant_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_rec_quant_opt.nb)|develop|
|
|【slim】V1.1|超轻量中文OCR 移动端模型|3.5M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_det_prune_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_cls_quant_opt.nb)|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.1_rec_quant_opt.nb)|v2.7|
|
||||||
|V1.0|轻量级中文OCR 移动端模型|8.6M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.0_det_opt.nb)|---|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.0_rec_opt.nb)|develop|
|
|V1.0|轻量级中文OCR 移动端模型|8.6M|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.0_det_opt.nb)|---|[下载地址](https://paddleocr.bj.bcebos.com/20-09-22/mobile/lite/ch_ppocr_mobile_v1.0_rec_opt.nb)|v2.7|
|
||||||
|
|
||||||
注意:V1.1 3.0M 轻量模型是使用PaddleSlim优化后的,需要配合Paddle-Lite最新预测库使用。
|
注意:V1.1 3.0M 轻量模型是使用PaddleSlim优化后的,需要配合Paddle-Lite最新预测库使用。
|
||||||
|
|
||||||
|
@ -99,9 +99,7 @@ Paddle-Lite 提供了多种策略来自动优化原始的模型,其中包括
|
||||||
# 如果准备环境时已经clone了Paddle-Lite,则不用重新clone Paddle-Lite
|
# 如果准备环境时已经clone了Paddle-Lite,则不用重新clone Paddle-Lite
|
||||||
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
||||||
cd Paddle-Lite
|
cd Paddle-Lite
|
||||||
git checkout develop
|
git checkout release/v2.7
|
||||||
# 切换到固定的commit
|
|
||||||
git reset --hard 55c53482bcdd2868373d024dd1144e4c5ec0e6b8
|
|
||||||
# 启动编译
|
# 启动编译
|
||||||
./lite/tools/build.sh build_optimize_tool
|
./lite/tools/build.sh build_optimize_tool
|
||||||
```
|
```
|
||||||
|
|
|
@ -18,15 +18,24 @@ deployment solutions for end-side deployment issues.
|
||||||
2. [Linux](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#linux)
|
2. [Linux](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#linux)
|
||||||
3. [MAC OS](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#mac-os)
|
3. [MAC OS](https://paddle-lite.readthedocs.io/zh/latest/source_compile/compile_env.html#mac-os)
|
||||||
|
|
||||||
## 3. Download prebuild library for android and ios
|
## 3. Prepare prebuild library for android and ios
|
||||||
|
|
||||||
|
### 3.1 Download prebuild library
|
||||||
|Platform|Prebuild library Download Link|
|
|Platform|Prebuild library Download Link|
|
||||||
|-|-|
|
|-|-|
|
||||||
|Android|[arm7](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.android.armv7.gcc.c++_shared.with_extra.with_cv.tar.gz) / [arm8](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.android.armv8.gcc.c++_shared.with_extra.with_cv.tar.gz)|
|
|Android|[arm7](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.android.armv7.gcc.c++_shared.with_extra.with_cv.tar.gz) / [arm8](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.android.armv8.gcc.c++_shared.with_extra.with_cv.tar.gz)|
|
||||||
|IOS|[arm7](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.ios.armv7.with_cv.with_extra.with_log.tiny_publish.tar.gz) / [arm8](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.ios.armv8.with_cv.with_extra.with_log.tiny_publish.tar.gz)|
|
|IOS|[arm7](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.ios.armv7.with_cv.with_extra.with_log.tiny_publish.tar.gz) / [arm8](https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.6.3/inference_lite_lib.ios.armv8.with_cv.with_extra.with_log.tiny_publish.tar.gz)|
|
||||||
|
|
||||||
note: The above pre-build inference library is compiled from the PaddleLite `release/2.6.3` branch. For more information about PaddleLite 2.6.3, please refer to [link](https://github.com/PaddlePaddle/Paddle-Lite/releases/tag/v2.6.3).
|
note: The above pre-build inference library is compiled from the PaddleLite `release/v2.7` branch. For more information about PaddleLite 2.6.3, please refer to [link](https://github.com/PaddlePaddle/Paddle-Lite/releases/tag/v2.6.3).
|
||||||
|
|
||||||
|
### 3.2 Compile prebuild library (Recommended)
|
||||||
|
```
|
||||||
|
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
||||||
|
cd Paddle-Lite
|
||||||
|
# checkout to Paddle-Lite release/v2.7 branch
|
||||||
|
git checkout release/v2.7
|
||||||
|
./lite/tools/build_android.sh --arch=armv8 --with_cv=ON --with_extra=ON
|
||||||
|
```
|
||||||
|
|
||||||
The structure of the prediction library is as follows:
|
The structure of the prediction library is as follows:
|
||||||
|
|
||||||
|
@ -76,9 +85,7 @@ If the model to be deployed is not in the above table, you need to follow the st
|
||||||
```
|
```
|
||||||
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
git clone https://github.com/PaddlePaddle/Paddle-Lite.git
|
||||||
cd Paddle-Lite
|
cd Paddle-Lite
|
||||||
git checkout develop
|
git checkout release/v2.7
|
||||||
# switch to the specified commit
|
|
||||||
git reset --hard 55c53482bcdd2868373d024dd1144e4c5ec0e6b8
|
|
||||||
./lite/tools/build.sh build_optimize_tool
|
./lite/tools/build.sh build_optimize_tool
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue