A simple pythonscript to augment an annotated image dataset in JPG/XML Format as used by LabelIMG (https://github.com/tzutalin/labelImg). The script will rotate the images 4 times and mirror the resulting images and the annotations making for an expansion by the factor of 8.
- Download the repository from the GitHub website and unzip it or directly clone it.
git clone https://github.com/BendiXB/AugmentLabelIMG.git
- Clear the
dataset/
andoutput/
directories of example data and copy your dataset todataset/
for it to be processed by the program. - Run
augment.py
in Python3.sudo python3 augment.py
- Your dataset will now be augmented and saved to
output/
.
rotation | not mirrored | mirrored |
---|---|---|
0° | ||
90° | ||
180° | ||
270° |
@ockapunktnet @BendiXB