how can I test a neural network ?? #I am a beginner

1 visualizzazione (ultimi 30 giorni)
Supwolf
Supwolf il 4 Feb 2020
Modificato: Supwolf il 4 Feb 2020
% I want to test the neural network to run though images in a floder.
% but now it has an error ,Plz show me hor to fix it
% This network run with Resnet50
% I am really beginner. Thanks a lot
newImage = fullfile('D:\projectLASTYEAR\trainDATA92');
ds = augmentedImageDatastore(imageSize, ...
newImage,'ColorPreprocessing','gray2rgb');
imageFeatures = activations(net, ds, featureLayer, ...
'MiniBatchSize', 16, 'OutputAs', 'columns');
Label = predict(classifier,imageFeatures,'ObservationsIn','columns');
sprintf('The loaded image belongs to %s class', Label)
% The error show
% % Error using augmentedImageDatastore (line 214)
% % Invalid input data type.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by