Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

yolov5m 动态图转静态图,数据读取feed_list问题

Open duwenzhao opened this issue 4 years ago • 1 comments

请提出你的问题 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是如何设置的?有相关的例子吗?

duwenzhao avatar Oct 24 '22 11:10 duwenzhao

您好,有关动转静的使用可以参考下这里的文档:https://www.paddlepaddle.org.cn/documentation/docs/zh/2.4rc/guides/jit/basic_usage_cn.html#dongzhuanjingxunlianyangli

ZzSean avatar Oct 25 '22 03:10 ZzSean