Do matlab has build-in mnist dataset for CNN training? If I load it as dlarray, how do I train it with CNN?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Runcong Kuang
am 3 Aug. 2022
Kommentiert: Walter Roberson
am 5 Aug. 2022
Is the 'toolbox/nnet/nndemos/nndatasets/DigitDataset' MNIST dataset?
It just contains 1000 samples for each label.
MNIST should have 60k training and 10k testing data.
If I use the dataset downloaded and loaded by 'processImagesMNIST' in "examples/nnet/main" according to this, it gives dlarray.
It is not in the format for the imagedatastore.
My current workaround is to convert dlarray to numeric array by extractdata, and then feed it to trainNetwork function.
Any other advice?
Thanks.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 3 Aug. 2022
Bearbeitet: Walter Roberson
am 5 Aug. 2022
No it does not. The download link is given at https://www.mathworks.com/help/deeplearning/ug/data-sets-for-deep-learning.html
2 Kommentare
Walter Roberson
am 5 Aug. 2022
No, if you
openExample('nnet/GeneratingHanddrawnDigitsUsingAVariationalAutoencoderVAEExample')
and then look at processImagesMNIST.m in that directory, you will see that the function reads an MNIST image and returns a 28 x 28 x 1 x something double precision value.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Data Workflows finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!