Below is my code, I have train a network with 93.50% acc. after training when use to classify a single image it's giving me an error
"Unable to resolve the name net.Layers.
Error in Object_detection_using_train_network (line 5)
inputSize = net.Layers(1).InputSize;"
any help would be appreciated.
I = imread('WIN_20201013_19_18_53_Pro.jpg');
inputSize = net.Layers(1).InputSize;
I = imresize(I,inputSize(1:2));
label = classify(net,I);