Skip to content

A simple python-script to augment an annotated dataset in JPG/XML Format as used by LabelIMG (https://github.com/tzutalin/labelImg) and now Label Studio. 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.

License

Notifications You must be signed in to change notification settings

BendiXB/AugmentLabelIMG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AugmentLabelIMG

HitCount

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.

Usage

  1. Download the repository from the GitHub website and unzip it or directly clone it. git clone https://github.com/BendiXB/AugmentLabelIMG.git
  2. Clear the dataset/ and output/ directories of example data and copy your dataset to dataset/ for it to be processed by the program.
  3. Run augment.py in Python3. sudo python3 augment.py
  4. Your dataset will now be augmented and saved to output/.

Example

rotation not mirrored mirrored
0° 0° mirrored
90° 90° 90° mirrored
180° 180° 180° mirrored
270° 270° 270° mirrored

Contributers

@ockapunktnet @BendiXB

About

A simple python-script to augment an annotated dataset in JPG/XML Format as used by LabelIMG (https://github.com/tzutalin/labelImg) and now Label Studio. 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.

Topics

Resources

License

Stars

Watchers

Forks

Languages