Last dimension disappears when I use an arrayDatastore
이전 댓글 표시
Hello everyone,
I was using a 4-d array of shape 8x234x1x1000 to train a ResNet, 8x234 being the size of my matrix, 1 being the number of channels and 1000 the number of points in my training set.
It worked well, however, I now want to use a multiple input neural network and hence need to use an arrayDatastore (I think?)
I specify : XTrain_features = arrayDatastore(features_mat(:,:,:,trainInd), "IterationDimension",4);
However, read(XTrain_features) gives :
1×1 cell array
{8×234 double}
And my neural network which input layer is imageInputLayer([8 234 1]) now gives an error saying I have no channel dimension.
Could someone please give me a workaround?
Thanks!
댓글 수: 1
It would be a very badly-written tool that did not accept a dimension of size one.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!