![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1533117/image.png)
- The first error occurs in the “transposedConv2dLayer”. The function requires input data which is in the form of [height, width, numChannels]. To resolve this please check the input data for the “transposedConv2dLayer”
- The missing output layer error occurs because there is an error on the last layer i.e “sigmoid”. You must use a classification layer after the sigmoid layer.
- The error on the sigmoid layer states that there is an unconnected output. For this you need to check the dimensions of the input data for sigmoid layer and also check if the sequence of layer is correct.
- https://www.mathworks.com/help/deeplearning/ref/classificationlayer.html
- https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.sigmoidlayer.html
- https://www.mathworks.com/help/deeplearning/ref/transposedconv2dlayer.html