mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-28 10:51:39 +08:00
Update jetson.md
This commit is contained in:
@@ -10,12 +10,17 @@ FastDeploy当前在Jetson仅支持ONNX Runtime CPU和TensorRT GPU两种后端推
|
|||||||
- cmake >= 3.10.0
|
- cmake >= 3.10.0
|
||||||
- jetpack >= 4.6.1
|
- jetpack >= 4.6.1
|
||||||
|
|
||||||
|
|
||||||
|
如果需要集成Paddle Inference后端,在[Paddle Inference预编译库](https://www.paddlepaddle.org.cn/inference/v2.4/guides/install/download_lib.html#c)页面根据开发环境选择对应的Jetpack C++包下载,并解压。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
git clone https://github.com/PaddlePaddle/FastDeploy.git
|
||||||
cd FastDeploy
|
cd FastDeploy
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
cmake .. -DBUILD_ON_JETSON=ON \
|
cmake .. -DBUILD_ON_JETSON=ON \
|
||||||
-DENABLE_VISION=ON \
|
-DENABLE_VISION=ON \
|
||||||
|
-DENABLE_PADDLE_BACKEND=ON \
|
||||||
|
-DPADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson \
|
||||||
-DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
|
-DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
|
||||||
make -j8
|
make -j8
|
||||||
make install
|
make install
|
||||||
@@ -34,6 +39,8 @@ make install
|
|||||||
|
|
||||||
Python打包依赖`wheel`,编译前请先执行`pip install wheel`
|
Python打包依赖`wheel`,编译前请先执行`pip install wheel`
|
||||||
|
|
||||||
|
如果需要集成Paddle Inference后端,在[Paddle Inference预编译库](https://www.paddlepaddle.org.cn/inference/v2.4/guides/install/download_lib.html#c)页面根据开发环境选择对应的Jetpack C++包下载,并解压。
|
||||||
|
|
||||||
所有编译选项通过环境变量导入
|
所有编译选项通过环境变量导入
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -41,6 +48,8 @@ git clone https://github.com/PaddlePaddle/FastDeploy.git
|
|||||||
cd FastDeploy/python
|
cd FastDeploy/python
|
||||||
export BUILD_ON_JETSON=ON
|
export BUILD_ON_JETSON=ON
|
||||||
export ENABLE_VISION=ON
|
export ENABLE_VISION=ON
|
||||||
|
export ENABLE_PADDLE_BACKEND=ON
|
||||||
|
export PADDLEINFERENCE_DIRECTORY=/Download/paddle_inference_jetson
|
||||||
|
|
||||||
python setup.py build
|
python setup.py build
|
||||||
python setup.py bdist_wheel
|
python setup.py bdist_wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user