I want to train a convolutional neural network in Matlab with 5 input images using the trainNetwork
function in their Deep Learning Toolbox. Currently, I have a combinedDatastore
object (ds
) for my training dataset with 5 inputs (images). I got the following error when using trainNetwork(ds, lgraph, options)
:
Error using trainNetwork (line 165)
Invalid network.
Caused by:
Network: Too many input layers. The network must have one input layer.
Detected input layers:
layer 'imageinput3'
layer 'imageinput1'
layer 'imageinput2'
layer 'imageinput5'
and 1 other layers.
How do I go about this? I am using Matlab 2019a. Thank you for your help!