diff --git a/deploy/lite/readme.md b/deploy/lite/readme.md index a9203933cb93ed3705dc509820c4c21d32e69f04..28ca9dd9b8cbdb5f8480bd8e4da2fc100e740cfc 100644 --- a/deploy/lite/readme.md +++ b/deploy/lite/readme.md @@ -100,6 +100,8 @@ Paddle-Lite 提供了多种策略来自动优化原始的模型,其中包括 git clone https://github.com/PaddlePaddle/Paddle-Lite.git cd Paddle-Lite git checkout develop +# 切换到固定的commit +git reset --hard 55c53482bcdd2868373d024dd1144e4c5ec0e6b8 # 启动编译 ./lite/tools/build.sh build_optimize_tool ``` @@ -252,7 +254,7 @@ use_direction_classify 0 # 是否使用方向分类器,0表示不使用,1 adb push debug /data/local/tmp/ adb shell cd /data/local/tmp/debug - export LD_LIBRARY_PATH=/data/local/tmp/debug:$LD_LIBRARY_PATH + export LD_LIBRARY_PATH=${PWD}:$LD_LIBRARY_PATH ./ocr_db_crnn ch_ppocr_mobile_v1.1_det_prune_opt.nb ch_ppocr_mobile_v1.1_rec_quant_opt.nb ch_ppocr_mobile_cls_quant_opt.nb ./11.jpg ppocr_keys_v1.txt ``` diff --git a/deploy/lite/readme_en.md b/deploy/lite/readme_en.md index 7d547cc50136142304852bd963a52f5d7a2d9712..2c5572ca8db00ef9505e7a6c20605d1808f3f683 100644 --- a/deploy/lite/readme_en.md +++ b/deploy/lite/readme_en.md @@ -77,6 +77,8 @@ 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 cd Paddle-Lite git checkout develop +# switch to the specified commit +git reset --hard 55c53482bcdd2868373d024dd1144e4c5ec0e6b8 ./lite/tools/build.sh build_optimize_tool ```