Image detector using non existing images

1 次查看(过去 30 天)
I am making some custom image detector for a project.
I labeled the images using Matlab imageLabeler, but after the labels were generated we changed the path of the images and moved some of them to another folder for testing purpouses.
For the traiing of the detectors I generated a table with the corrected file names and the labels (similar to the yolo example) and I tought that the missing images will be ignored (they do not exist in the specified path, nor have I included its path in any way). The thing is that training with the complete set (existing and non existing images paths) yields better results than removing the non-existing file names.
Any idea why this is happening?

回答(1 个)

Yogesh Khurana
Yogesh Khurana 2019-12-30
I think when you are passing full directory as data for training and then you are testing for a part of same data. The accuracy will be greater as you are considering the same data for testing again. The model already trained itself for the data that you are using for testing. Please do not passing the test dataset for accurate results of your code.
Please refer to Yolo example once again for path that you need to include while training and testing.
Hope this helps!

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by