Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image to labels validation functionality #190

Open
merryHunter opened this issue May 25, 2023 · 1 comment
Open

Image to labels validation functionality #190

merryHunter opened this issue May 25, 2023 · 1 comment

Comments

@merryHunter
Copy link

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?

@jorgenusan
Copy link
Contributor

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants