Info

此问题已关闭。 请重新打开它进行编辑或回答。

イメージサイズ

1 次查看(过去 30 天)
大空
大空 2022-7-25
关闭: Rena Berman 2022-8-23
此 个问题 已被 Atsushi Ueno 标记
audsTrainとaudsValidationサイズが[256 256 1]にならず[256 256 3]になってしまいます。なぜ変わってくれないのでしょうか?
imds = imageDatastore('sindou','IncludeSubfolders',true,'LabelSource','foldernames');
labelCount = countEachLabel(imds)
%% データで振り分ける
rateTrainFiles = 0.6;
[imdsTrain,imdsValidation] = splitEachLabel(imds,rateTrainFiles,'randomize');
s_image = [256 256 1];
audsTrain = augmentedImageDatastore(s_image,imdsTrain);
audsValidation = augmentedImageDatastore(s_image,imdsValidation);

回答(0 个)

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!