Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardojdb authored May 20, 2019
1 parent a2db477 commit a00e34d
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,30 @@ Face API with Docker, Tensorflow and PyTorch.
* Docker with Nvidia Support [Nvidia-Docker](https://github.com/NVIDIA/nvidia-docker)
* CUDA 9 [Guide](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html)


### How to use:
In order to start the API the user must run the docker containers using the `docker-compose` command.

To build the docker images use:
```bash
docker-compose -f dockers/docker-compose.yml build
```

To run the docker containers use:
```bash
docker-compose -f dockers/docker-compose.yml up
```

The user can access the API using the following URL:
```
http://localhost:7000/predict/
```

Each model is hosted in a different port e.g. `7001`, `7002`, `7003`.

### Test:
Change the `host` variable inside the `test_api.py` script with the IP in which the dockers are running and then run the following:
```
```bash
python test_api.py
```

Expand All @@ -23,7 +44,7 @@ This demo calls the API to make predictions using the webcam.
Make sure the docker containers are running and change the `host` variable with the desired IP.

Run the demo using:
```
```bash
python demo.py
```

0 comments on commit a00e34d

Please sign in to comment.