accessai / access-niu

DIY NIU
Apache License 2.0
12 stars 7 forks source link

Build Status Python 3.6 License Code style: black

access-niu

This repository contains application to train models for Image classification and Regression tasks.

Tasks

Installation

pip install access-niu

Training

python -m access_niu.train --template sample/colors/template.yml

Inference

python -m access_niu --projects output

Now use this curl command to parse

curl -X POST \
  http://localhost:8000/parse \
  -F data=@samples/colors/train/red/1.jpg

Docker

Build image

train the model

docker run -v $(pwd)/accessai:/accessai access-niu python -m access_niu.train --template samples/colors/template.yml

After running the train command you should get an output folder in the accessai directory

Now start the access_niu server
```bash
docker -d run -v $(pwd)/accessai:/accessai -p 8000:8000 access-niu --projects output

Now use this curl command to parse

curl -X POST \
  http://localhost:8000/parse \
  -F data=@samples/colors/train/red/1.jpg

References