Groundtruths in StopSigns Example Has 27 Images detected & The root Folder Contains 40
Mostra commenti meno recenti
Hi All,
I am debugging my code which is similar to the Stopsign example! The groundtruths I am using is 90x2 table with 90 images in the root folder stored in matlab.
I would like to know!
why matlab StopSign Example has 40 images in the root folder and in the ground truths there is 27x2 table being detected?
Is there some sort of ramdomized traning happening?
What is happening with the other 13 images?
What is being tested and what is being trained in this exercise?
There is no traning code established or is it being called with one of the fucntions and i am not seeing this process?
Please let me know, this is baffling me!
thank you in advance for your patience and time responding
Risposte (1)
Ajay Pattassery
il 21 Feb 2020
0 voti
- why MATLAB StopSign Example has 40 images in the root folder and in the ground truths there is a 27x2 table being detected?
- There is no compulsion to use just 27 images for training. You can use all the 40 images available. The only thing to keep in mind is to have a separate set of images for testing. That is image that is not used for training. So In your case, you can keep maybe 70 images for training and rest 20 images for testing.
2. Is there some sort of randomized training happening?
- Based on the option set in the trainingOptions, the images for training can be shuffled. Refer the shuffle section in the Mini Batch Options.
3. What is being tested and what is being trained in this exercise?
4.There is no training code established or is it being called with one of the functions and I am not seeing this process?
- I assume you are referring to the following example. If not also please go through the mentioned example that details the training and testing process for the stop sign detection. In this example, transfer learning is done on the network that is already trained using the CIFAR-10 dataset. You can see the images for training in the stopSigns variable.
4 Commenti
Matpar
il 21 Feb 2020
Matpar
il 21 Feb 2020
Ajay Pattassery
il 24 Feb 2020
Modificato: Ajay Pattassery
il 24 Feb 2020
%% Display strongest detection result.
img = imread('11.jpg');
[bbox, score, label] = detect(rcnn, img, 'MiniBatchSize', 15);
whos [bbox, score, label]
The above testing part looks fine to me. I assume there is an image named 11 exist. Also you do not need MiniBatchSize argument if you are testing just a single image. You can try displaying the bbox, score, and label value using disp(bbox), disp(label).
For finding all the bouding boxes you can use the argument SelectStrongest as false in the detect commnad in the above code.
[bbox, score, label] = detect(rcnn, img, 'MiniBatchSize', 15,'SelectStrongest',false);
Categorie
Scopri di più su Object Detection 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!