1 Star 0 Fork 29

朱代辉 / FastDeploy

forked from PaddlePaddle / FastDeploy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jetson.md 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Jason 提交于 2022-10-31 14:21 . Update jetson.md

Jetson部署库编译

FastDeploy当前在Jetson仅支持ONNX Runtime CPU和TensorRT GPU两种后端推理

C++ SDK编译安装

编译需满足

  • gcc/g++ >= 5.4(推荐8.2)
  • cmake >= 3.10.0
  • jetpack >= 4.6.1
git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy
mkdir build && cd build
cmake .. -DBUILD_ON_JETSON=ON \
         -DENABLE_VISION=ON \
         -DENABLE_TEXT=ON
         -DCMAKE_INSTALL_PREFIX=${PWD}/installed_fastdeploy
make -j8
make install

编译完成后,即在CMAKE_INSTALL_PREFIX指定的目录下生成C++推理库

Python编译安装

编译过程同样需要满足

  • gcc/g++ >= 5.4(推荐8.2)
  • cmake >= 3.10.0
  • jetpack >= 4.6.1
  • python >= 3.6

所有编译选项通过环境变量导入

git clone https://github.com/PaddlePaddle/FastDeploy.git
cd FastDeploy/python
export BUILD_ON_JETSON=ON
export ENABLE_VISION=ON
export ENABLE_TEXT=ON

python setup.py build
python setup.py bdist_wheel

编译完成即会在FastDeploy/python/dist目录下生成编译后的wheel包,直接pip install即可

编译过程中,如若修改编译参数,为避免带来缓存影响,可删除FastDeploy/python目录下的build.setuptools-cmake-build两个子目录后再重新编译

Python
1
https://gitee.com/DSDream/FastDeploy.git
git@gitee.com:DSDream/FastDeploy.git
DSDream
FastDeploy
FastDeploy
develop

搜索帮助