Paddle 目标检测YOLOv3文档(下)的某处漏写参数

izj3ouym  于 2021-12-07  发布在  Java
关注(0)|答案(3)|浏览(276)

链接: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()

pdsfdshx

pdsfdshx1#

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

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 APIFAQGithub Issue and AI community to get the answer.Have a nice day!

4si2a6ki

4si2a6ki2#

非常感谢您的反馈,gt_bbox2和gt_class2的dtype需要指定,我们近期会修复此文档。

j2datikz

j2datikz3#

您好,在图像增广方法汇总部分的image_augment函数最后,实际上我们进行了数据格式转换,转换成了'float32'以及'int32'格式。您可以再看一下哈~

相关问题