简体   繁体   English

为什么object检测会发现多个物体?

[英]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:笔记:

  • The model was trained on a small data set of ~30 images with that particular label face-gendermale occuring ~20 times. model 在一个包含约 30 张图像的小型数据集上进行了训练,其中特定的 label face-gendermale出现了约 20 次。
  • Each training image has 1-3 labelled objects.每个训练图像有 1-3 个标记对象。
  • There are 5 label total.总共有 5 个 label。

Questions:问题:

  • Is that expected or is there something wrong with the model?这是预期的还是 model 有问题?
  • If this is expected, how should I evaluate these multiple results or even count the number of objects found in the model?如果这是意料之中的,我应该如何评估这些多个结果,甚至计算在 model 中找到的对象数量?

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.

相关问题 SpriteKit-多个对象上的接触检测 - SpriteKit - Contact detection on multiple objects 在相同类型的多个对象上进行SpriteKit碰撞检测 - SpriteKit collision detection on multiple objects of the same type 为什么我的对象检测应用程序没有返回任何内容? - Why my Object Detection app is not returning anything? 使用SceneKit同时进行多对象检测和跟踪 - Multiple object detection and tracking simultaneously using SceneKit 为什么 UILabel.text 会导致“致命错误:在解开 Optional 值时意外发现 nil”? - Why does UILabel.text result in “fatal error: unexpectedly found nil while unwrapping an Optional value”? 找到了多个名为“tag”的方法,结果不匹配 - Multiple methods named 'tag' found with mismatched result 多个对象的全局对象设置 - Global Object Settings for Multiple Objects TensorFlow Lite Object 检测 iOS 不适用于经过自定义训练的 Z20F35E630DAF44DBFA4C3F68FZ53 - TensorFlow Lite Object Detection iOS does not work with custom trained model 来自 iOS 中给定图像的多个自定义对象检测(图像处理) - Multiple Custom Object Detection (Image processing) from a given Image in iOS 为什么不可能进行对象内碰撞检测? - Why it's impossible to do in-object collision detection?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM