From 8968a22fb06a8a7a313ee9b4bdde7d8a58e33f0d Mon Sep 17 00:00:00 2001 From: cnn Date: Wed, 21 Apr 2021 16:12:10 +0800 Subject: [PATCH] [doc] add ext_op build doc (#2709) * add ext_op build doc, test=fix_document * add note for JetPack version with machine --- configs/dota/README.md | 10 ++++++++++ deploy/cpp/docs/Jetson_build.md | 2 ++ 2 files changed, 12 insertions(+) diff --git a/configs/dota/README.md b/configs/dota/README.md index 250d0bc9a..3fe6bd803 100644 --- a/configs/dota/README.md +++ b/configs/dota/README.md @@ -66,6 +66,16 @@ paddle.utils.run_check() python3.7 setup.py install ``` +Windows环境请按照如下步骤安装: + +(1)准备Visual Studio (版本需要>=Visual Studio 2015 update3),这里以VS2017为例; + +(2)点击开始-->Visual Studio 2017-->适用于 VS 2017 的x64本机工具命令提示; + +(3)设置环境变量:`set DISTUTILS_USE_SDK=1` + +(4)进入`PaddleDetection/ppdet/ext_op`目录,通过`python3.7 setup.py install`命令进行安装。 + 安装完成后,测试自定义op是否可以正常编译以及计算结果: ``` cd PaddleDetecetion/ppdet/ext_op diff --git a/deploy/cpp/docs/Jetson_build.md b/deploy/cpp/docs/Jetson_build.md index f5d147f8f..d7ece3058 100644 --- a/deploy/cpp/docs/Jetson_build.md +++ b/deploy/cpp/docs/Jetson_build.md @@ -18,6 +18,8 @@ cat /etc/nv_tegra_release * (3) 下载`JetPack`,请参考[NVIDIA Jetson Linux Developer Guide](https://docs.nvidia.com/jetson/l4t/index.html) 中的`Preparing a Jetson Developer Kit for Use`章节内容进行刷写系统镜像。 +**注意**: 请在[jetpack-archive](https://developer.nvidia.com/embedded/jetpack-archive) 根据硬件选择适配的`JetPack`版本进行刷机。 + ## 下载或编译`Paddle`预测库 本文档使用`Paddle`在`JetPack4.3`上预先编译好的预测库,请根据硬件在[安装与编译 Linux 预测库](https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/05_inference_deployment/inference/build_and_install_lib_cn.html) 中选择对应版本的`Paddle`预测库。 -- GitLab