以下安装过程默认用户已安装好paddlepaddle-gpu或paddlepaddle(版本大于或等于1.8.1),paddlepaddle安装方式参照飞桨官网
安装方式一 pip安装
注意其中pycocotools在Windows安装较为特殊,可参考下面的Windows安装命令
pip install paddlex -i https://mirror.baidu.com/pypi/simple
安装方式二 Github代码安装
github代码会跟随开发进度不断更新
git clone https://github.com/PaddlePaddle/PaddleX.git
cd PaddleX
git checkout develop
python setup.py install
pycocotools安装问题
PaddleX依赖pycocotools包,如安装pycocotools失败,可参照如下方式安装pycocotools
Windows安装时可能会提示缺少
Microsoft Visual C++ 2015 build tools,点击下载VC build tools安装再执行如下pip命令pip install cython pip install git+https://gitee.com/jiangjiajun/philferriere-cocoapi.git#subdirectory=PythonAPILinux/Mac系统下,直接使用pip安装如下两个依赖即可
pip install cython pip install pycocotools