Face Match

Run Docker Image

  • You need to get credentials to our gitlab registry first before executing the commands below. Contact our sales for inquiry.

  • After you get credential, insert your credential to docker registry

docker login registry.gitlab.com -u <username> -p <token>
  • Run CPU Version

docker run \
--name nodeflux-fremis \
-it \
-p 8080:8080 \
registry.gitlab.com/nodefluxio/fremis:0.3.0 \
httpserver \
--access-key NODEFLUX_ACCESS_KEY \
--secret-key NODEFLUX_SECRET_KEY
  • Run GPU Version

docker run \
--gpus all \
--name nodeflux-fremis \
-it \
-p 8080:8080 \
registry.gitlab.com/nodefluxio/fremis:latest-gpu \
httpserver \
--access-key NODEFLUX_ACCESS_KEY> \
--secret-key NODEFLUX_SECRET_KEY
  • The GPU version requires a backend NVidia CUDA, nvidia-dockerneed to be installed first.

Payload Request

  • The face match API is served in the following endpoint

POST /v1/face/match
  • For example, here's a typical face match request

{
"image_a": {
"content": "{BASE64_IMAGE}"
},
"image_b": {
"content": "{BASE64_IMAGE}"
}
}
  • and the response:

{
"face_match": {
"match": true,
"similarity": 1
}
}

‚Äč