简体   繁体   English

用于图像到特征向量的 CNN

[英]CNN for image to feature vector

I have a rather simple question, but I cannot wrap my head around this.我有一个相当简单的问题,但我无法解决这个问题。 You need to correct me in the case that I have understood something wrong,,.如果我理解错误,您需要纠正我,。 Typically, CNNs are used for image classification, where the FC layers are used to output the probability per given class.通常,CNN 用于图像分类,其中 FC 层用于 output 每个给定类别的概率。

I want actually something else: Can I train a CNN to output a feature vector?我实际上想要别的东西:我可以训练一个 CNN 到 output 一个特征向量吗? One example would be: Input==Image;一个例子是:输入==图像; Output==Color histogram with 3 channels (RGB) and every channel value is the number of red, green, blue pixels.输出==具有 3 个通道 (RGB) 的颜色直方图,每个通道值是红色、绿色、蓝色像素的数量。 (I actually want to learn other image feature descriptors for special images, but that should then work analogous). (我实际上想学习特殊图像的其他图像特征描述符,但这应该类似)。

Pointers, Links and Tutorials (esp. code that I can modify for my purposes) would be greatly appreciated.指针、链接和教程(尤其是我可以为我的目的修改的代码)将不胜感激。

Thanks so much in advance!!提前非常感谢!!

the output of a CNN is a feature vector,it means the input is an image and you'd get a feature vector of that image as an output. CNN 的 output 是特征向量,这意味着输入是图像,您将获得该图像的特征向量作为 output。 That feature vector has been computed by using a mask that apply on that image.该特征向量是通过使用应用于该图像的掩码计算的。 Those feature vector is been used for classification.这些特征向量被用于分类。 it's up to you that use the output for classification or anything else.使用 output 进行分类或其他任何事情都取决于您。 this link might help you more.此链接可能会对您有所帮助。 http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/ http://www.wildml.com/2015/11/understanding-convolutional-neural-networks-for-nlp/

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

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