I trained my network for skin tumor classification and then saved it. Now I want to test the accuracy for some new images. It works fine using imageDatastore but what I really want is to be able to browse in my computer for an image and classify it using the trained network. Is this possible?
Below I have attached the test code for a set of images.
imds= imageDatastore('E:/LICENTA/BD_Skin_Cancer_Screening/mini_data/test/', ...
'IncludeSubfolders', true, ...
'LabelSource', 'foldernames' );
[YPred,probs] = classify(netTransfer,imds);
accuracy = mean(YPred == imds.Labels)
I = readimage(imds,idx(i));
label = YPred(idx(i));
title(string(label) + ", " + num2str(100*max(probs(idx(i),:)),3) + "%");