pyodi icon indicating copy to clipboard operation
pyodi copied to clipboard

Image to labels validation functionality

Open merryHunter opened this issue 1 year ago • 1 comments

Hi,

I am wondering, do you think it makes sense to introduce validation of image paths for annotations? like pyodi validate trainval.json --data-dir $DATA so that it outputs if there are any missing images while annotations for them do exist. Let me explain briefly the reasoning.

In my case, I often have issues with exporting datasets in COCO format from CVAT. Suppose I have a few projects where by some reason images have same name. Then, after I bring down images to a single folder, some images will be overwritten, or maybe they were missed from the beginning. Then, annotations may exist, but there is no easy out of the box tool to check the correspondence between annotations and images (particularly after all merge/random split operations).

Could it make sense to eliminate annotations for missing images automatically?

merryHunter avatar May 25 '23 21:05 merryHunter

Hi!

It might be a good idea! I think it would be good to add one more parameter to indicate a new resulting json with the new annotations instead of deleting them from the original json.

If you have time and want to add this functionality you can open a pull request! :)

jorgenusan avatar May 29 '23 06:05 jorgenusan