简体   繁体   English

这个深度学习图像分类问题的目标应该是什么

[英]what should be the target in this deep learning image classification problem

I am doing a image classification project using CNN in keras. I have a dataset of about 900 photos of about 70 people.Each person has multiple photos of his different age.我正在 keras 中使用 CNN 进行图像分类项目。我有一个数据集,其中包含大约 70 个人的 900 张照片。每个人都有多张不同年龄的照片。 My goal is to predict the correct ID of the person if any one of his photo is in the input.我的目标是预测该人的正确 ID,如果他的任何一张照片在输入中。 Here is the glimpse of the data.这是数据的一瞥。在此处输入图像描述

My questions are:我的问题是:

  1. What should be my target column?Is Target 'AGE' or 'ID'?我的目标列应该是什么?目标是“AGE”还是“ID”? 2-Do I need to do hot-encoding of the target column? 2-我是否需要对目标列进行热编码? For example if I used ID as my target,then do I have to do one-hot-encoding of ID column?例如,如果我使用 ID 作为目标,那么我是否必须对 ID 列进行单热编码?

  2. If I used ID as my target,then after one-hot-encoding, does it mean,I will be having 70 classes?如果我使用 ID 作为我的目标,那么在 one-hot-encoding 之后,是否意味着我将有 70 个类?

  3. I need information about the output layer.我需要有关 output 层的信息。 My goal is to find whether the photo belong to the same ID or not,so what should be the output layer?我的目标是查找照片是否属于同一 ID,那么 output 层应该是什么? Shall I use softmax with 70 outputs?我应该使用带有 70 个输出的 softmax 吗?
  4. Another question about the output layer is that can I use a softmax with 70 outputs and then feed it to a layer of sigmoid with single output?关于 output 层的另一个问题是,我可以使用具有 70 个输出的 softmax,然后将其馈送到具有单个 output 的 sigmoid 层吗?
  1. You are going to identify the same person using different age images.您将使用不同年龄的图像来识别同一个人。 For example, in the dataset, you have 100 different images of khan and you trained a model. Now you provide the 101st image of khan , the model will detect it.例如,在数据集中,您有 100 张不同的可汗图像,并且训练了 model。现在您提供第 101 张可汗图像,model 将检测到它。 So your target column should be ID .所以你的目标列应该是ID
  2. yes, there are 70 classes and you get one hot encoded vector of 900x70是的,有 70 个类,你得到一个900x70的热编码向量
  3. It should be a softmax layer because the sigmoid layer is used for binary class or multilabel problem.它应该是 softmax 层,因为 sigmoid 层用于二进制 class 或多标签问题。 As you have to detect 70 different people from each other, you need a softmax class.因为你必须检测 70 个不同的人,所以你需要一个 softmax class。
  4. I don't think so, in this way your model would not be capable of telling which person image is this (the one provided as a test)我不这么认为,这样你的 model 就无法分辨出这是哪个人的形象(作为测试提供的那个)

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

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