Annotation data updater is a console/commandline tool made to interact and modify/update an existing YOLO dataset in a fast and easy way.
This tool requires .NET 5, which can be downloaded from here.
- Removes "invalid" data from a dataset. Invalid data is a piece of annotated data where there is no object present in the image. In YOLO this is represented by an empty *.txt file. This removes the corresponding image and empty text file
- Removes images with no corresponding text files
- Removes a particular annotation class from the testdata
- Removes datafiles that fulfills a LIKE comparator with another string. Useful when accidentally doubling all data from an accidental copy or something similar
- Rename annotation
- Removes annotation text files where there is no corresponding image
- Automatically extract a random validation set
- Convert all images to png
Simply run the program and follow the instructions in the console.
When using the data updater from the commandline, the following order of arguments are expected.
- The action number you wish to be perform, see Features for a the list of valid options
- The path with data
- Optional parameter for Action 3 (Class to remove), 4 (Like comparator string) and 7 (Optional percent to extract as validation set)
Example:
In this case I've changed directory to the location of the AnnotateDataUpdate
executable. Thus to perform Action 1 on a particular folder I run:
.\AnnotateDataUpdate.exe 1 "F:\NN Stuff\Annotated data"