多输入和输出CNN

时间:2020-05-11 13:19:33

标签: keras tensorflow2.0

我有以下问题:

Input: a set of 6 images
Output: a probability for each image determining whether the image is the correct one out of the 6 images

我知道如何使用keras创建CNN,但不知道如何将多个图像作为输入。 一个人将如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我能想到的一种方法是使用预训练模型(VGG16等)并从某个中间层中提取向量,然后将6个向量连接在一起,然后将其馈送到神经网络(或其他分类模型)中)并将其训练为多类分类任务。

您还可以使用自动编码器并采取异常检测方法。

相关问题