使用PaddleDetection 进行模型训练,数据集格式采用了VOC格式,执行训练命令python tools/train.py -c configs/ppyoloe/voc/ppyoloe_plus_crn_l_30e_voc.yml --eval,一直报错,这是怎么回事啊? 确认PaddleDetection 安装好了的,可以用 安装教程提供的命令 进行预测
在GPU上预测一张图片
export CUDA_VISIBLE_DEVICES=0
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
gpt让我改打开文件的格式为utf-8,但是会引发更多的报错
```shell
C:\Users\malibin\miniconda3\envs\paddle_env\lib\site-packages\setuptools\sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
C:\Users\malibin\miniconda3\envs\paddle_env\lib\site-packages\pkg_resources\__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
C:\Users\malibin\miniconda3\envs\paddle_env\lib\site-packages\pkg_resources\__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
Traceback (most recent call last):
File "tools/train.py", line 209, in <module>
main()
File "tools/train.py", line 205, in main
run(FLAGS, cfg)
File "tools/train.py", line 145, in run
trainer = Trainer(cfg, mode='train')
File "C:\Users\malibin\seg\PaddleDetection\ppdet\engine\trainer.py", line 100, in __init__
self.loader = create('{}Reader'.format(capital_mode))(
File "C:\Users\malibin\seg\PaddleDetection\ppdet\data\reader.py", line 168, in __call__
self.dataset.parse_dataset()
File "C:\Users\malibin\seg\PaddleDetection\ppdet\data\source\voc.py", line 108, in parse_dataset
line = fr.readline()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xbf in position 2: illegal multibyte sequence
```