Skip to content

Commit

Permalink
added sample dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
majeedk526 committed May 5, 2019
1 parent d4dd2b1 commit 4346ca4
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ pip install access-niu

## Training
```bash
python -m access_niu.train --template sample/sample_template.yml
python -m access_niu.train --template access_niu/sample/colors/sample_template.yml
```

## Inference
```bash
python -m access_niu.wsgi --project ./sample_project
python -m access_niu.wsgi --project ./colors
```
Now use this curl command to parse
```bash
Expand Down
4 changes: 2 additions & 2 deletions access_niu/about.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# inspired from: https://github.com/explosion/spaCy/blob/master/spacy/about.py

__title__ = "access_niu"
__version__ = "0.0.1"
__version__ = "0.0.1dev"
__summary__ = "Production grade Natural Image Understanding"
__uri__ = "https://accessai.co"
__uri__ = "http://accessai.co"
__author__ = "ConvexHull Technology"
__email__ = "[email protected]"
__license__ = "Apache 2.0"
Expand Down
4 changes: 2 additions & 2 deletions access_niu/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def execute(self, **kwargs):

self.model.fit_generator(
generator=train_generator,
steps_per_epoch=n_samples // batch_size,
epochs=epochs,
steps_per_epoch=n_samples // batch_size, #TODO: handle case when steps_per_epoch==0
epochs=epochs
)

def persist(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
data:
train: '/home/majeed/data/gender/train'
test: '/home/majeed/data/gender/test'
train: 'access_niu/sample/colors/train'
test: '/home/majeed/data/colors/train'
project:
path: output
batch_size: 24
path: 'colors'
batch_size: 1
epochs: 2
pipeline:
- name: 'mobilenet_v2'
Expand Down
Binary file added access_niu/sample/colors/train/black/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added access_niu/sample/colors/train/black/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added access_niu/sample/colors/train/red/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added access_niu/sample/colors/train/red/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4346ca4

Please sign in to comment.