DataStore Length Mismatch b/w image and bbox
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am trying to run YOLO example with my own dataset. I am currently attempting with a small batch of files (181). I have 181 image files and 200 bbox files.
Can you combine and run a test when the length is different? Some images have been removed on purpose.
I am getting the error on this line,
detectionResults = detect(detector, preprocessedTestData);
Also,do you have to have a bbox for a particular imagefile, can it skip the file if there is no bbox?
Thanks!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/396513/image.png)
0 Kommentare
Akzeptierte Antwort
Divya Gaddipati
am 2 Nov. 2020
Each image should contain atleast one labeled object and ideally more labeled images are required to train a robust network.
Since, you mentioned that some of the images have been removed, their corresponding bounding boxes should also be removed.
If any image doesn't have any bbox, that sample should be removed as well.
Assuming you are using R2020b, you can refer to the validateInputData attached to the YOLOv3 example. This function removes the invalid samples as mentioned in the example.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!