https://github.com/ramidecodes/image-dataset-augmentator
Image augmentation pipepline for conditional GANs base on Augmentator library
https://github.com/ramidecodes/image-dataset-augmentator
Last synced: 2 months ago
JSON representation
Image augmentation pipepline for conditional GANs base on Augmentator library
- Host: GitHub
- URL: https://github.com/ramidecodes/image-dataset-augmentator
- Owner: ramidecodes
- License: mit
- Created: 2019-08-16T08:27:56.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T21:34:33.000Z (over 2 years ago)
- Last Synced: 2024-01-03T13:33:20.119Z (over 2 years ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# image-dataset-augmentatator
Image augmentation pipepline for conditional GANs base on Augmentator library
## Available parameters
* `--input_dir` path to directory containing the images
* `--output_dir` path to directory to save new images
* `--output_format` output image format (JPEG|BMP|PNG|GIF)
* `--output_width` output image width in pixels
* `--output_height` output image height in pixels
* `--resample_filter` filter to use when resampling (BICUBIC|BILINEAR|ANTIALIAS|NEAREST)
* `--sample_count` amount of new images to generate
* `--zoom` zoom in randomly
* `--distortion` distort randomly
* `--output_prefix` prefix used to lable output images 'prefix_00001.jpeg'
## Basic execution
```bash
python3 augmentator.py --input_dir 'path/to/your/images' --output_dir 'path/to/your/augmented/images' --zoom --distortion --output_prefix 'relevantprefix' --sample_count 100
```
This will do random crops and resize the images to 512px also add random zoom and distortion.