简体   繁体   English

如何使用 object 检测 model 优化 CoreML 图像分类器 model?

[英]How to refine a CoreML image classifier model with an object detection model?

I have an image classifier model created with CreateML.我有一个用 CreateML 创建的图像分类器 model。

The labelling in the training set is roughly:训练集中的标注大致为:

  • Image contains object A -> label a图像包含 object A -> label a
  • Image contains object B -> label b图像包含 object B -> label b
  • Image contains object C -> label c图像包含 object C -> label Z4A8A08F09D37B73795649038408B5F3
  • Image contains object A + B -> label a图像包含 object A + B -> label a
  • Image contains object A + B + C -> label c图片包含 object A + B + C -> label Z4A8A08F09D37B737953338

You could say there is some "prioritization" of objects where object A has a higher priority than B, therefore label a should apply.您可以说 object A 的优先级高于 B 的对象有一些“优先级”,因此 label a 应该适用。 The same with label c where object C has the highest priority.与 label c 相同,其中 object Z0D61F8370CAD1D412F8Z0B84D143E12 具有最高优先级。

This is clearly not optimal for the algorithm, so I would use an object identification algorithm which seems more appropriate.这显然不是算法的最佳选择,所以我会使用 object 识别算法,这似乎更合适。 But I already have a huge data set with 100.000s of manually correctly classified images that would not be used to train the algorithm, and I would have to build a new training set from scratch for object detection which is obviously a cost issue and won't reach a data set size like the existing one anytime soon.但是我已经有一个庞大的数据集,其中包含 100,000 多个手动正确分类的图像,这些图像不会用于训练算法,我必须从头开始构建一个新的训练集来进行 object 检测,这显然是一个成本问题并且不会不会很快达到现有数据集的大小。

Is there a way I can leverage the existing data set to build an image classification model and augment it with an object detection model that I build manually from scratch but may only have a few 100 items in the data set?有没有一种方法可以利用现有的数据集来构建图像分类 model 并通过 object 检测 model 来增强它,我从头开始手动构建但可能只有几个项目?

One way to solve this is to use multi-label classification, where the model tells you the probability that A is present, the probability that B is present, and the probability that C is present, but these are independent from one another.解决此问题的一种方法是使用多标签分类,其中 model 告诉您 A 存在的概率、B 存在的概率以及 C 存在的概率,但这些是相互独立的。 Unfortunately, Create ML cannot train this kind of model.不幸的是,Create ML 无法训练这种 model。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM