链接:https://www.paddlepaddle.org.cn/tutorials/projectdetail/1516021#anchor-3
建议将gt_bbox2 = np.zeros((MAX_NUM, 4))
与gt_class2 = np.zeros((MAX_NUM,))
分别改为gt_bbox2 = np.zeros((MAX_NUM, 4), dtype=np.float32)
与gt_class2 = np.zeros((MAX_NUM,), dtype=np.int32)
,否则无法进行paddle.vision.ops.yolo_loss()
3条答案
按热度按时间pdsfdshx1#
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
4si2a6ki2#
非常感谢您的反馈,gt_bbox2和gt_class2的dtype需要指定,我们近期会修复此文档。
j2datikz3#
您好,在图像增广方法汇总部分的image_augment函数最后,实际上我们进行了数据格式转换,转换成了'float32'以及'int32'格式。您可以再看一下哈~