Skip to content

MehmetOKUYAR/Augmentation_for_Yolo_labeling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Augmentation for Yolo labeling

Data is a very important factor in deep learning. The more data you have, the better your model can perform. If you do not have enough data, it is possible to reproduce them artificially. Using the repository I developed below, you can artificially increase your data by using its features such as vertical mirroring, horizontal mirroring and brightness change.

You can easily augmentation labeled images and txt files in yolo format.

Augmentation types:

  • Horizantal Flip
  • Vertical Flip
  • Horizantal and Vertical Flip
  • Random Brightness

Run the application

The input parameters can be changed using the command line :

yolo_aug.py -i <input_dir> -t <aug_type (hflip,vflip,hvflip,bright)> -e <image extension (jpg,jpeg,png ...)> -o <output_dir>

For running example :

python3 yolo_aug.py -i images -t hflip -e jpg -o aug

Example Output

Original image 1 Vertical image 2
Horizantal and Vertical image 3 Horizantal image 4

Releases

No releases published

Packages

No packages published

Languages