- Build the image for the MMS:
$ docker build -t human-pose-mms . - Prepare the deployment model with model-archiver:
$ docker run --rm -it -v $(pwd):/tmp human-pose-mms:latest bash $ model-archiver --model-name pose --model-path /tmp/service --handler handler:handle --runtime python3 --export-path /tmp - Start the MMS:
$ docker run --rm -it -p 8080:8080 -p 8081:8081 -v $(pwd):/tmp mms-human-pose:latest multi-model-server --start --mms-config /tmp/config.properties --models posenet=pose.mar --model-store /tmp
Send a request with curl:
curl -X POST http://localhost:8080/predictions/posenet/ -T example.jpg- Install python packages from here
- Run the client
$ python client/cli.py
This repository is not for production use for sure!!!. Please read it on medium to learn more about this repository.
Thanks to the Joshua Earle for photo on Unsplash