Scripts and samples to augment yolo annotations: txt annotations and images to be augmented must be located inside "dataset" folder, as described in the example. Augmented will be saved in "output". In my project I needed rotations, change in contrast and blurring.
Suppose you have to develop a Glenn Danzig detector, and you have to augment annotations like this:
after running the script you will find in output directory images and annotations like this:
90 degree rotation:
180 degree rotation:
270 degree rotation:
All images are slightly blurred and have randomly changed contrast, but you can simply implement your own augmentations. If images inside dataset directory have no txt annotations will be considered background and augmented without annotations.