Augmented Image Datastore doesn't accept Image Datastore

조회 수: 4 (최근 30일)
Greg
Greg 2018년 3월 18일
댓글: Dnon Dnon 2018년 3월 26일
I have been using imageDatastore for training networks. All works fine.
Next, I wanted to create augmentedImageDatastore.
The documentation explains that imageDatastore can be used. https://uk.mathworks.com/help/nnet/ref/augmentedimagedatastore.html
however when try to do it, I receive this error
Undefined function 'augmentedImageDatastore' for input arguments of type 'matlab.io.datastore.ImageDatastore'
% all my images are 50x50x3
imageSize = [50 50 3];
augimds = augmentedImageDatastore(imageSize,imds);
I think this maybe something with the ReadFcn but it is default: @readDatastoreImage Is this possible to use imageDatastore, how if yes? I am using Matlab 2017b Thanks

채택된 답변

dhammo2
dhammo2 2018년 3월 20일
I think that is only possible in 2018a as I have no problem in the 2018 version but it does not work in 2017b. You should be able to use the following function instead (which is to be removed in future versions);
augimds = augmentedImageSource(imageSize,imds);
https://uk.mathworks.com/help/nnet/ref/augmentedimagesource.html

추가 답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 18일
You tagged with Computer Vision product but it is part of the Neural Network product.
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 3월 20일
I suspect you do not have the Neural Network Toolbox installed.
Greg
Greg 2018년 3월 21일
편집: Greg 2018년 3월 21일
hi Walter, I have had all toolboxes including neural nets and have been using it. This was the problem of 2017 version. thanks anyway for kindly replying Greg

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by