是这样的,我环境配置完毕后,准备进入训练,输入指令:
python -u tools/train.py -c configs/ppyolo/ppyolo.yml后,开始报错。
这里是我的报错信息:
PS F:\PycharmProject\PaddleDetection> python -u tools/train.py -c configs/ppyolo/ppyolo.yml
2022-04-11 09:32:46,473-INFO: If regularizer of a Parameter has been set by 'fluid.ParamAttr' or 'fluid.WeightNormParamAttr' already. The Regularization[L2Decay, regularization_coeff=0.000500] in Optimizer will not take effect, and it
will only be applied to other Parameters!
2022-04-11 09:32:51,105-WARNING: C:\Users\dell/.cache/paddle/weights\ResNet50_vd_ssld_pretrained.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ]
C:\Users\dell\anaconda3\envs\paddle\lib\site-packages\paddle\fluid\io.py:1998: UserWarning: This list is not set, Because of Paramerter not found in program. There are: fc_0.b_0 fc_0.w_0
format(" ".join(unused_para_list)))
Traceback (most recent call last):
File "tools/train.py", line 370, in
main()
File "tools/train.py", line 206, in main
devices_num=devices_num)
File "F:\PycharmProject\PaddleDetection\ppdet\data\reader.py", line 434, in create_reader
reader = Reader(**cfg)()
File "F:\PycharmProject\PaddleDetection\ppdet\data\reader.py", line 208, in __init__
self._roidbs = self._dataset.get_roidb()
File "F:\PycharmProject\PaddleDetection\ppdet\data\source\dataset.py", line 68, in get_roidb
self.load_roidb_and_cname2cid()
File "F:\PycharmProject\PaddleDetection\ppdet\data\source\voc.py", line 207, in load_roidb_and_cname2cid
assert len(records) > 0, 'not found any voc record in %s' % (anno_path)
AssertionError: not found any voc record in dataset/fruit/fruit_detection/m_train.txt
m_train.txt的内容是这样的:
./JPEGImages/0093_abd.jpg ./Annotations/0093_abd.xml
./JPEGImages/0167_abd.jpg ./Annotations/0167_abd.xml
./JPEGImages/0321_abd.jpg ./Annotations/0321_abd.xml
./JPEGImages/0142_abd.jpg ./Annotations/0142_abd.xml
./JPEGImages/0063_abd.jpg ./Annotations/0063_abd.xml
./JPEGImages/0351_abd.jpg ./Annotations/0351_abd.xml
./JPEGImages/0272_abd.jpg ./Annotations/0272_abd.xml
./JPEGImages/0123_abd.jpg ./Annotations/0123_abd.xml
./JPEGImages/0260_abd.jpg ./Annotations/0260_abd.xml
./JPEGImages/0028_abd.jpg ./Annotations/0028_abd.xml
./JPEGImages/0115_abd.jpg ./Annotations/0115_abd.xml
./JPEGImages/0120_abd.jpg ./Annotations/0120_abd.xml
./JPEGImages/0121_abd.jpg ./Annotations/0121_abd.xml
./JPEGImages/0253_abd.jpg ./Annotations/0253_abd.xml
./JPEGImages/0133_abd.jpg ./Annotations/0133_abd.xml
./JPEGImages/0346_abd.jpg ./Annotations/0346_abd.xml
./JPEGImages/0367_abd.jpg ./Annotations/0367_abd.xml
./JPEGImages/0141_abd.jpg ./Annotations/0141_abd.xml
..............................................
大家可以帮忙看看是什么原因吗?
报错m_train.txt这个列表文件有问题