Paddle安装参考
- # 不指定版本安装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
-
- # 遇到 AttributeError: ‘ImageDraw‘ object has no attribute ‘textsize‘
- pip uninstall Pillow
- pip install Pillow==9.5.0