[英]Why does object detection result in multiple found objects?
I trained an object detector with CreateML and when I test the model in CreateML, I get a high number of identified objects:我用 CreateML 训练了一个 object 检测器,当我在 CreateML 中测试 model 时,我得到了大量的识别对象:
Notes:笔记:
face-gendermale
occuring ~20 times. face-gendermale
出现了约 20 次。 Questions:问题:
Cross-posted in Apple Developer Forums .在Apple 开发者论坛中交叉发布。 Photo of man © Jason Stitt |
男人的照片© Jason Stitt | Dreamstime.com
Dreamstime.com
A typical object detection model with make about 1000 predictions for every image (although it can be much more depending on the model architecture).典型的 object 检测 model 对每张图像进行大约 1000 次预测(尽管它可能更多取决于 model 架构)。 Most of these predictions have very low confidence, so they are filtered out.
大多数这些预测的置信度都非常低,因此被过滤掉了。 Then the ones that are left over are sent through non-maximum suppression (NMS), which removes bounding boxes that overlap too much.
然后剩下的那些通过非最大抑制(NMS)发送,它去除了重叠太多的边界框。
In your case, it seems that the threshold for NMS is too low (or too high), because many overlapping boxes survive.在您的情况下,NMS 的阈值似乎太低(或太高),因为许多重叠框仍然存在。
However, it also seems that the model hasn't been trained very well yet, probably because you used very few images.但是,model 似乎还没有训练得很好,可能是因为您使用的图像很少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.