how can I test a neural network ?? #I am a beginner
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
% 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.
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!