Input for image3dInputLayer in CNN

2 views (last 30 days)
M M Nabi
M M Nabi on 3 Mar 2021
Commented: M M Nabi on 3 Mar 2021
I have an image of size (11✕17✕10✕100311).
How to I write the CNN input layer or convolutional layer for that??
layers = [
image3dInputLayer([? ? ? ?])
convolution3dLayer([? ? ?],?,'Padding','same')
batchNormalizationLayer
reluLayer
dropoutLayer(0.2)
fullyConnectedLayer(1)
regressionLayer];
  1 Comment
M M Nabi
M M Nabi on 3 Mar 2021
size(XTrain)
= 11 17 3 100303
size(YTrain)
ans =
100303 1
net = trainNetwork(XTrain,YTrain,layers,options);
Gives error :
Error using trainNetwork (line 165)
Number of observations in X and Y disagree.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!