请提出你的问题 Please ask your question
paddlepaddle == 2.3.2
使用官方提供的paddleYOLO 代码,数据集coco,使用yolov5_m_300e_coco.yml
device:cpu,batchsize:2
使用了动态图转静态图方法,具体做法:
在train.py中if name == "main":下面增加paddle.enable_static()
错误:
File "tools/train.py", line 176, in
main()
File "tools/train.py", line 169, in main
run(FLAGS, cfg)
File "tools/train.py", line 124, in run
trainer = Trainer(cfg, mode='train')
File "D:\paddle\yolov5\PaddleYOLO\ppdet\engine\trainer.py", line 97, in init
self.dataset, cfg.worker_num)
File "D:\paddle\yolov5\PaddleYOLO\ppdet\data\reader.py", line 207, in call
use_shared_memory=use_shared_memory)
File "C:\Users\Anaconda3\envs\paddle\lib\site-packages\paddle\fluid\reader.py", line 470, in init
"feed_list should be set when return_list=False"
AssertionError: feed_list should be set when return_list=False
yolov5的feed_list是如何设置的?有相关的例子吗?
您好,有关动转静的使用可以参考下这里的文档:https://www.paddlepaddle.org.cn/documentation/docs/zh/2.4rc/guides/jit/basic_usage_cn.html#dongzhuanjingxunlianyangli