From 3dfbdf5ca596825971c84d16131c98bfb3c94545 Mon Sep 17 00:00:00 2001 From: dengkaipeng Date: Sun, 25 Apr 2021 09:36:04 +0000 Subject: [PATCH] update install doc --- docs/tutorials/INSTALL.md | 21 +++++++++++---------- docs/tutorials/INSTALL_cn.md | 19 ++++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/docs/tutorials/INSTALL.md b/docs/tutorials/INSTALL.md index f6fe75d1f..db09adaad 100644 --- a/docs/tutorials/INSTALL.md +++ b/docs/tutorials/INSTALL.md @@ -70,8 +70,8 @@ PaddleDetection can be installed in the following two ways: **Note:** Installing via pip only supports Python3 ``` -# install paddledet via pip -pip install paddledet==2.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +# Install paddledet via pip +pip install paddledet==2.0.1 -i https://mirror.baidu.com/pypi/simple # Download and use the configuration files and code examples in the source code git clone https://github.com/PaddlePaddle/PaddleDetection.git @@ -85,17 +85,18 @@ cd PaddleDetection cd git clone https://github.com/PaddlePaddle/PaddleDetection.git +# Compile and install paddledet +cd PaddleDetection +python setup.py install + # Install other dependencies pip install -r requirements.txt -# Install PaddleDetection -cd PaddleDetection -python setup.py install ``` **Note** -1. Because the origin version of cocoapi does not support windows, another version is used which only supports Python3: +1. If you are working on Windows OS, `pycocotools` installing may failed because of the origin version of cocoapi does not support windows, another version can be used used which only supports Python3: ```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI``` @@ -108,10 +109,10 @@ python ppdet/modeling/tests/test_architectures.py If the tests are passed, the following information will be prompted: ``` -.......... +..... ---------------------------------------------------------------------- -Ran 12 tests in 2.480s -OK (skipped=2) +Ran 5 tests in 4.280s +OK ``` ## Inference demo @@ -121,7 +122,7 @@ OK (skipped=2) ``` # Predict an image by GPU export CUDA_VISIBLE_DEVICES=0 -python tools/infer.py -c configs/ppyolo/ppyolo.yml -o use_gpu=true weights=https://paddlemodels.bj.bcebos.com/object_detection/ppyolo.pdparams --infer_img=demo/000000014439.jpg +python tools/infer.py -c configs/ppyolo/ppyolo_r50vd_dcn_1x_coco.yml -o use_gpu=true weights=https://paddlemodels.bj.bcebos.com/object_detection/ppyolo.pdparams --infer_img=demo/000000014439.jpg ``` An image of the same name with the predicted result will be generated under the `output` folder. diff --git a/docs/tutorials/INSTALL_cn.md b/docs/tutorials/INSTALL_cn.md index f0d7c2e21..e51a1091d 100644 --- a/docs/tutorials/INSTALL_cn.md +++ b/docs/tutorials/INSTALL_cn.md @@ -66,7 +66,7 @@ python -c "import paddle; print(paddle.__version__)" ``` # pip安装paddledet -pip install paddledet==2.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple +pip install paddledet==2.0.1 -i https://mirror.baidu.com/pypi/simple # 下载使用源码中的配置文件和代码示例 git clone https://github.com/PaddlePaddle/PaddleDetection.git @@ -80,17 +80,18 @@ cd PaddleDetection cd git clone https://github.com/PaddlePaddle/PaddleDetection.git +# 编译安装paddledet +cd PaddleDetection +python setup.py install + # 安装其他依赖 pip install -r requirements.txt -# 安装PaddleDetection -cd PaddleDetection -python setup.py install ``` **注意** -1. 由于原版cocoapi不支持windows,采用第三方实现版本,该版本仅支持Python3 +1. 若您使用的是Windows系统,由于原版cocoapi不支持Windows,`pycocotools`依赖可能安装失败,可采用第三方实现版本,该版本仅支持Python3 ```pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI``` @@ -104,10 +105,10 @@ python ppdet/modeling/tests/test_architectures.py 测试通过后会提示如下信息: ``` -.......... +..... ---------------------------------------------------------------------- -Ran 12 tests in 2.480s -OK (skipped=2) +Ran 5 tests in 4.280s +OK ``` ## 快速体验 @@ -117,7 +118,7 @@ OK (skipped=2) ``` # 在GPU上预测一张图片 export CUDA_VISIBLE_DEVICES=0 -python tools/infer.py -c configs/ppyolo/ppyolo.yml -o use_gpu=true weights=https://paddlemodels.bj.bcebos.com/object_detection/ppyolo.pdparams --infer_img=demo/000000014439.jpg +python tools/infer.py -c configs/ppyolo/ppyolo_r50vd_dcn_1x_coco.yml -o use_gpu=true weights=https://paddlemodels.bj.bcebos.com/object_detection/ppyolo.pdparams --infer_img=demo/000000014439.jpg ``` 会在`output`文件夹下生成一个画有预测结果的同名图像。 -- GitLab