Closed 534114658 closed 2 years ago
@534114658 原本的anchor设置是在coco大规模数据上聚类得到的,鲁棒性很高,图片较少时不建议重新聚类了。或者要确认下anchors这个要在网络和reader中两处同时修改
Since this issue has not been updated for more than three months, it will be closed, if it is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. It is recommended to pull and try the latest code first. 由于该问题超过三个月未更新,将会被关闭,若问题未解决或有后续问题,请随时重新打开(建议先拉取最新代码进行尝试),我们会继续跟进。
PP-YOLO 使用PP-YOLO的ResNet18vd 原档anchors如下: anchors: [[10, 14], [23, 27], [37, 58], [81, 82], [135, 169], [344, 319]]
使用anchor_cluster.py生成anchors如下图 生成命令: python anchor_cluster.py -c annotations\train.yml -n 6 -s 416,256 -m v2 -i 1000 anchors: [[30, 35], [37, 35], [36, 40], [47, 48], [53, 62], [59, 61]]
30张图片 都训练10分钟 自带的anchors训练效果很好,100%识别,识别框也很准确 用anchor_cluster.py生成的anchors训练 同样的参数训练有10%无法识别 还有些识别框不准确,如下图: 正常标注如下:
是哪里参数设置问题吗?