Skip to content

Commit 37db514

Browse files
author
DevBruce
committed
Release v1.0.0
1 parent f6b6d2c commit 37db514

File tree

5 files changed

+42
-4
lines changed

5 files changed

+42
-4
lines changed

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include MANIFEST.in
2+
include README.md
3+
include LICENSE
4+
include requirements.txt

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# CutMixImageDataGenerator (Keras)
22

3-
![Python-v3.7.3](https://img.shields.io/badge/Python-v3.7.3-blue)
4-
![Keras-v2.2.4](https://img.shields.io/badge/Keras-v2.2.4-brightgreen)
3+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/DevBruce/CutMixImageDataGenerator_For_Keras)
54

6-
**Version 0.1 (Beta)**
5+
> Paper: [CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features](https://arxiv.org/abs/1905.04899)
76
87
<br>
98

9+
## Install
10+
11+
```bash
12+
$ pip install cutmix-keras
13+
```
14+
15+
<br>
16+
17+
## How To Use
18+
1019
```python
1120
class CutMixImageDataGenerator():
1221
def __init__(self, generator1, generator2, img_size, batch_size):
@@ -33,9 +42,13 @@ So there would no augmentation
3342

3443
<br>
3544

36-
## Using Example
45+
### Using Example
3746

3847
```python
48+
# (some codes) ...
49+
from cutmix_keras import CutMixImageDataGenerator # Import CutMix
50+
51+
3952
train_datagen = ImageDataGenerator(
4053
rescale=1./255,
4154
)

requirements.txt

Whitespace-only changes.

setup.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from setuptools import setup
2+
import os
3+
4+
5+
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
6+
README_PATH = os.path.join(ROOT_DIR, 'README.md')
7+
8+
setup(
9+
name='cutmix-keras',
10+
author='devbruce',
11+
author_email='[email protected]',
12+
description='CutMuxImageDataGenerator For Keras',
13+
long_description=open(README_PATH, encoding='utf-8').read(),
14+
long_description_content_type='text/markdown',
15+
license='MIT',
16+
version='1.0.0',
17+
url='https://github.com/DevBruce/CutMixImageDataGenerator_For_Keras',
18+
py_modules=['cutmix_keras'],
19+
keywords=['cutmix', 'keras'],
20+
# install_requires=['keras'],
21+
)

0 commit comments

Comments
 (0)