i am getting error while predicting image??
Mostra commenti meno recenti
img=imread('4.jpg');
>> imshow(img)
>> net=alexnet;
>> predict=classify(net,img)
Error using DAGNetwork/calculatePredict>predictBatch (line 151)
Incorrect input size. The input images must have a size of [227 227 3].
Error in DAGNetwork/calculatePredict (line 17)
Y = predictBatch( ...
Error in DAGNetwork/classify (line 134)
scores = this.calculatePredict( ...
Error in SeriesNetwork/classify (line 502)
[labels, scores] = this.UnderlyingDAGNetwork.classify(X, varargin{:});
Risposta accettata
Più risposte (1)
arun anoop m
il 17 Lug 2020
0 voti
this helped me to solve errors.
Hope it may help. Nice.
Categorie
Scopri di più su Image Data Workflows in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!