Paddle安装

Paddle安装参考

docs/tutorials/INSTALL_cn.md · PaddlePaddle/PaddleDetection - Gitee.comicon-default.png?t=N7T8https://gitee.com/paddlepaddle/PaddleDetection/blob/release/2.6/docs/tutorials/INSTALL_cn.md

# 不指定版本安装paddle-gpu
python -m pip install paddlepaddle-gpu

# 测试安装
import paddle
paddle.utils.run_check()

# 克隆PaddleDetection
git clone https://gitee.com/paddlepaddle/PaddleDetection.git

# 安装依赖
cd PaddleDetection
pip install -r requirements.txt

# 编译安装paddledet
python setup.py install

安装后确认测试,显示OK即通过:
python ppdet/modeling/tests/test_architectures.py

# 在GPU上预测一张图片,结果在PaddleDetection\output目录
python tools/infer.py -c configs/ppyolo/ppyolo_r50vd_dcn_1x_coco.yml -o use_gpu=true weights=https://paddledet.bj.bcebos.com/models/ppyolo_r50vd_dcn_1x_coco.pdparams --infer_img=demo/000000014439.jpg
# 遇到 AttributeError: ‘ImageDraw‘ object has no attribute ‘textsize‘
pip uninstall Pillow
pip install Pillow==9.5.0

你可能感兴趣的:(paddle)