From eaa017fb091f463f7af66fbd403181c861f23797 Mon Sep 17 00:00:00 2001 From: huangjianhui <852142024@qq.com> Date: Thu, 18 Aug 2022 21:24:29 +0800 Subject: [PATCH] Update PPYOLOE README.md (#133) * Update README.md * Update README.md * Update README.md * Create README.md * Update README.md * Update README.md * Update README.md * Update README.md * Add evaluation calculate time and fix some bugs * Update classification __init__ * Move to ppseg * Add segmentation doc * Add PaddleClas infer.py * Update PaddleClas infer.py * Delete .infer.py.swp * Add PaddleClas infer.cc * Update README.md * Update README.md * Update README.md * Update infer.py * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Add PaddleSeg doc and infer.cc demo * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Create segmentation_result.md * Update README.md * Update segmentation_result.md * Update segmentation_result.md * Update segmentation_result.md * Update classification and detection evaluation function * Fix python grammar bug * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jason --- .../detection/paddledetection/cpp/README.md | 18 ++++++++++-------- .../detection/paddledetection/python/README.md | 9 +++++---- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/examples/vision/detection/paddledetection/cpp/README.md b/examples/vision/detection/paddledetection/cpp/README.md index 7f54064f0..875e8da32 100644 --- a/examples/vision/detection/paddledetection/cpp/README.md +++ b/examples/vision/detection/paddledetection/cpp/README.md @@ -10,26 +10,28 @@ 以Linux上推理为例,在本目录执行如下命令即可完成编译测试 ``` +以ppyoloe为例进行推理部署 + #下载SDK,编译模型examples代码(SDK中包含了examples代码) -wget https://bj.bcebos.com/paddlehub/fastdeploy/libs/0.2.0/fastdeploy-linux-x64-gpu-0.2.0.tgz +wget https://bj.bcebos.com/fastdeploy/release/cpp/fastdeploy-linux-x64-gpu-0.2.0.tgz tar xvf fastdeploy-linux-x64-gpu-0.2.0.tgz -cd fastdeploy-linux-x64-gpu-0.2.0/examples/vision/detection/paddledetection +cd fastdeploy-linux-x64-gpu-0.2.0/examples/vision/detection/paddledetection/cpp mkdir build && cd build cmake .. -DFASTDEPLOY_INSTALL_DIR=${PWD}/../../../../../../../fastdeploy-linux-x64-gpu-0.2.0 make -j # 下载PPYOLOE模型文件和测试图片 -wget https://bj.bcebos.com/paddlehub/fastdeploy/picodet_l_320_coco_lcnet.tgz -wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000087038.jpg -tar xvf picodet_l_320_coco_lcnet.tgz +wget https://bj.bcebos.com/paddlehub/fastdeploy/ppyoloe_crn_l_300e_coco.tgz +wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg +tar xvf ppyoloe_crn_l_300e_coco.tgz # CPU推理 -./infer_ppyoloe_demo ./picodet_l_320_coco_lcnet 000000087038.jpg 0 +./infer_ppyoloe_demo ./ppyoloe_crn_l_300e_coco 000000014439.jpg 0 # GPU推理 -./infer_ppyoloe_demo ./picodet_l_320_coco_lcnet 000000087038.jpg 1 +./infer_ppyoloe_demo ./ppyoloe_crn_l_300e_coco 000000014439.jpg 1 # GPU上TensorRT推理 -./infer_ppyoloe_demo ./picodet_l_320_coco_lcnet 000000087038.jpg 2 +./infer_ppyoloe_demo ./ppyoloe_crn_l_300e_coco 000000014439.jpg 2 ``` ## PaddleDetection C++接口 diff --git a/examples/vision/detection/paddledetection/python/README.md b/examples/vision/detection/paddledetection/python/README.md index 7c72e265a..bbe7db990 100644 --- a/examples/vision/detection/paddledetection/python/README.md +++ b/examples/vision/detection/paddledetection/python/README.md @@ -8,10 +8,11 @@ 本目录下提供`infer_xxx.py`快速完成PPYOLOE/PicoDet等模型在CPU/GPU,以及GPU上通过TensorRT加速部署的示例。执行如下脚本即可完成 ``` +以ppyoloe为例进行推理部署 #下载部署示例代码 git clone https://github.com/PaddlePaddle/FastDeploy.git -cd examples/vision/detection/paddledetection/python/ +cd FastDeploy/examples/vision/detection/paddledetection/python/ #下载PPYOLOE模型文件和测试图片 wget https://bj.bcebos.com/paddlehub/fastdeploy/ppyoloe_crn_l_300e_coco.tgz @@ -19,11 +20,11 @@ wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/0000000 tar xvf ppyoloe_crn_l_300e_coco.tgz # CPU推理 -python infer.py --model_dir ppyoloe_crn_l_300e_coco --image 000000087038.jpg --device cpu +python infer_ppyoloe.py --model_dir ppyoloe_crn_l_300e_coco --image 000000014439.jpg --device cpu # GPU推理 -python infer.py --model_dir ppyoloe_crn_l_300e_coco --image 000000087038.jpg --device gpu +python infer_ppyoloe.py --model_dir ppyoloe_crn_l_300e_coco --image 000000014439.jpg --device gpu # GPU上使用TensorRT推理 (注意:TensorRT推理第一次运行,有序列化模型的操作,有一定耗时,需要耐心等待) -python infer.py --model_dir ppyoloe_crn_l_300e_coco --image 000000087038.jpg --device gpu --use_trt True +python infer_ppyoloe.py --model_dir ppyoloe_crn_l_300e_coco --image 000000014439.jpg --device gpu --use_trt True ``` 运行完成可视化结果如下图所示