https://github.com/lewis-morris/image_augment
Image augmentation for CNN's. Aiming to increase generalization.
https://github.com/lewis-morris/image_augment
augmentation image numpy python
Last synced: 4 months ago
JSON representation
Image augmentation for CNN's. Aiming to increase generalization.
- Host: GitHub
- URL: https://github.com/lewis-morris/image_augment
- Owner: lewis-morris
- License: gpl-3.0
- Created: 2020-04-27T04:16:06.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T11:29:45.000Z (about 6 years ago)
- Last Synced: 2025-11-15T08:14:29.696Z (7 months ago)
- Topics: augmentation, image, numpy, python
- Language: Jupyter Notebook
- Homepage:
- Size: 40.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic image augmenter
Basic image augmentation for CNN's. Aiming to add regularisation to your model at the input layer.
Can be used in a pytorch pipeline
## Setup
Use pip to install
`pip install image-augment`
[PyPI](https://pypi.org/project/image-augment/)
## Features
Cutout - blocking out random segments of the image - details on this technique can be found here. https://arxiv.org/pdf/1708.04552.pdf
Noise - randomly adds noise to image
Mirroring - randomly flips image on vertical and horizontal axis.
Rotation - randomly rotates image
## Basic Usage.
```python
from ImageAugment import basic
from PIL import Image
img = Image.open(./example_images/messi5.jpg)
img
```

```python
new_image = basic()(img)
new_image
```

# For more info check the example jupyter notebook
[Jupyter examples](./example.ipynb)