未验证 提交 f8e1a3d6 编写于 作者: W wangguanzhong 提交者: GitHub

update paddlecv doc (#5608)

上级 840a91c3
...@@ -4,9 +4,9 @@ PaddleCV是飞桨视觉统一的推理部署套件,提供了单模型、多模 ...@@ -4,9 +4,9 @@ PaddleCV是飞桨视觉统一的推理部署套件,提供了单模型、多模
- [安装](#1) - [安装](#1)
- [预测部署](#2) - [预测部署](#2)
- [部署示例](#2.1) - [部署示例](#2.1)
- [参数说明](#2.2) - [参数说明](#2.2)
- [配置文件](#2.3) - [配置文件](#2.3)
- [二次开发](#3) - [二次开发](#3)
<a name="1"></a> <a name="1"></a>
...@@ -45,6 +45,9 @@ python -u tools/predict.py --config=configs/single_op/PP-HGNet.yml --input=demo/ ...@@ -45,6 +45,9 @@ python -u tools/predict.py --config=configs/single_op/PP-HGNet.yml --input=demo/
# 目标检测任务 # 目标检测任务
python -u tools/predict.py --config=configs/single_op/PP-YOLOE+.yml --input=demo/000000014439.jpg python -u tools/predict.py --config=configs/single_op/PP-YOLOE+.yml --input=demo/000000014439.jpg
# 图像分割任务
python -u tools/predict.py --config=configs/single_op/PP-HumanSegV2.yml --input=demo/pp_humansegv2_demo.jpg
# OCR任务 # OCR任务
python -u tools/predict.py --config=configs/system/PP-OCRv3.yml --input=demo/word_1.jpg python -u tools/predict.py --config=configs/system/PP-OCRv3.yml --input=demo/word_1.jpg
``` ```
...@@ -79,14 +82,13 @@ res = paddlecv("../demo/00056221.jpg") ...@@ -79,14 +82,13 @@ res = paddlecv("../demo/00056221.jpg")
``` ```
# 通过-o修改检测后处理阈值 # 通过-o修改检测后处理阈值
# -o 中的`0`表示MODEL的Op位置,防止模型串联过程中出现同类Op的情况
python -u tools/predict.py --config=configs/single_op/PP-YOLOE+.yml --input=demo/000000014439.jpg -o MODEL.0.DetectionOp.PostProcess.0.ParserDetResults.threshold=0.6 python -u tools/predict.py --config=configs/single_op/PP-YOLOE+.yml --input=demo/000000014439.jpg -o MODEL.0.DetectionOp.PostProcess.0.ParserDetResults.threshold=0.6
``` ```
**注意:** **注意:**
1. 优先级排序:命令行输入 > 配置文件配置 1. 优先级排序:命令行输入 > 配置文件配置
2. -o 中的`0`表示MODEL的Op位置,防止模型串联过程中出现同类Op的情况
<a name="3"></a> <a name="3"></a>
......
...@@ -40,11 +40,9 @@ python -c "import paddle; print(paddle.__version__)" ...@@ -40,11 +40,9 @@ python -c "import paddle; print(paddle.__version__)"
``` ```
# 克隆PaddleModelPipeline仓库 # 克隆PaddleModelPipeline仓库
cd <path/to/clone/PaddleModelPipeline> cd <path/to/clone/models>
git clone https://github.com/jerrywgz/PaddleModelPipeline.git git clone https://github.com/PaddlePaddle/models.git
cd models/paddlecv
# 安装其他依赖
cd PaddleModelPipeline
# 编译安装paddlecv # 编译安装paddlecv
python setup.py install python setup.py install
......
...@@ -50,7 +50,7 @@ function init() { ...@@ -50,7 +50,7 @@ function init() {
rm -rf $DIST_DIR $BUILD_DIR $EGG_DIR $TEST_DIR rm -rf $DIST_DIR $BUILD_DIR $EGG_DIR $TEST_DIR
if [ `pip list | grep paddlecv | wc -l` -gt 0 ]; then if [ `pip list | grep paddlecv | wc -l` -gt 0 ]; then
echo -e "${BLUE}[init]${NONE} uninstalling paddlecv..." echo -e "${BLUE}[init]${NONE} uninstalling paddlecv..."
#pip uninstall -y paddlecv pip uninstall -y paddlecv
fi fi
echo -e "${BLUE}[init]${NONE} ${GREEN}init success\n" echo -e "${BLUE}[init]${NONE} ${GREEN}init success\n"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册