Skip to content
Advertisement

VGG16 Network for Multiple Inputs Images

I am trying to use the VGG16 network for multiple input images. Training this model using a simple CNN with 2 inputs gave me an acc. of about 50 %, which is why I wanted to try it using an established model like VGG16.
Here is what I have tried out:

JavaScript
  1. I get this error while calling the Model function.
JavaScript

I understand that the graph is a disconnect, but I could not find out where.
Here are the compile and fit functions.

JavaScript
  1. I have commented on some lines: optinal_conv and optinal_pool. What could be the effect to apply Conv2D and MaxPooling2D after the concatenate function?

Advertisement

Answer

I recommend seeing this answer Multi-input Multi-output Model with Keras Functional API. Here is one way you can achieve this:

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement