https://github.com/ar-ray-code/yolo_augmentation
This program greatly reduces the work by padding the txt file as well as padding the image.
https://github.com/ar-ray-code/yolo_augmentation
Last synced: 6 months ago
JSON representation
This program greatly reduces the work by padding the txt file as well as padding the image.
- Host: GitHub
- URL: https://github.com/ar-ray-code/yolo_augmentation
- Owner: Ar-Ray-code
- License: mit
- Created: 2021-01-08T15:03:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-11T14:11:15.000Z (about 5 years ago)
- Last Synced: 2024-05-01T17:48:07.877Z (almost 2 years ago)
- Language: Python
- Size: 875 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YOLO augmentation
## Description
Reinventing The Wheel?!!!!
I'm using [Yolo_Label](https://github.com/developer0hye/Yolo_Label) to label object.
I do augmentation for YOLO training, but I didn't want to do labeling work after the augmentation. This program greatly reduces the work by padding the txt file as well as padding the image. The default is to inflate 24 times the image.
## Requirement
- Python3.6 or later (Windows10, Ubuntu)
- OpenCV3 or later
## Usage(CUI)
- Image is from https://github.com/developer0hye/Yolo_Label. Suppose the file is already labeled.

- Execute the following command.
`$ python3 yolo_argmentation.py -p -f jpg`
For example : `python3 yolo_argmentation.py -p data`

- Augmented files will be generated.
- This is a diagram of the program's algorithm.

- The name rules after program execution are as shown in the image below. (e.g. raccoon_1.jpg)

## Usage(GUI)
- Dependent of PyQt5
- Execute this command to start program. `python3 yolo_argmentation_gui.py`
- Press "Select Folder" button to select the target image folder.
- Press "Start" button to start process.(Progress bar on the terminal.)
- The word "Finish" will appear when the process ends

## Options(For CUI)
- -h or --help : Show help
- -f or --format : Specify files format. (default : jpg)
- -p or --path : Specify the folder path where the file to be read is located. (default : None)
## License
MIT : https://github.com/Ar-Ray-code/yolo_augmentation/blob/main/LICENSE