Skip to content

Commit

Permalink
modified readme
Browse files Browse the repository at this point in the history
  • Loading branch information
majeedk526 committed May 19, 2019
1 parent 93a7f84 commit 4f8290a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,24 @@ pip install access-niu

## Training
```bash
python -m access_niu.train --template access_niu/sample/colors/sample_template.yml
```
Docker:
```bash
docker exec {CONTAINER} python -m access_niu.wsgi --project /access-ui/access_ui/sample_project
python -m access_niu.train --template sample/colors/template.yml
```

## Inference
```bash
python -m access_niu.wsgi --project ./output/colors
python -m access_niu --projects output
```
Now use this curl command to parse
```bash
curl -X POST \
http://localhost:8000/parse \
-F data=@test_image.jpg
-F data=@samples/colors/train/red/1.jpg
```

## Docker
Docker:
```bash
docker exec {CONTAINER} python -m access_niu.wsgi --project /access-ui/access_ui/sample_project
```
Docker:
```bash
Expand Down

0 comments on commit 4f8290a

Please sign in to comment.