From 0538c207b013ea1df05141bbd1e5bdd0d7c325e6 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Mon, 3 Jun 2024 20:10:51 +0100 Subject: [PATCH] docker hub info added --- README.md | 4 ++-- scripts/dockerize.sh | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ec645a..13c766f 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,8 @@ Face recognition, facial attribute analysis and vector representation functions **Dockerized Service** - [`Demo`](https://youtu.be/9Tk9lRQareA) +[![Docker Pulls](https://img.shields.io/docker/pulls/serengil/deepface?logo=docker)](https://hub.docker.com/r/serengil/deepface) + You can deploy the deepface api on a kubernetes cluster with docker. The following [shell script](https://github.com/serengil/deepface/blob/master/scripts/dockerize.sh) will serve deepface on `localhost:5005`. You may need to re-configure the [Dockerfile](https://github.com/serengil/deepface/blob/master/Dockerfile) if you want to apply some customization. Then, even if you do not have a development environment, you will be able to consume deepface services such as verify and analyze. You can also access the inside of the docker image to run deepface related commands. Please follow the instructions in the [shell script](https://github.com/serengil/deepface/blob/master/scripts/dockerize.sh). ```shell @@ -326,8 +328,6 @@ cd scripts ./dockerize.sh ``` -

- **Command Line Interface** - [`Demo`](https://youtu.be/PKKTAr3ts2s) DeepFace comes with a command line interface as well. You are able to access its functions in command line as shown below. The command deepface expects the function name as 1st argument and function arguments thereafter. diff --git a/scripts/dockerize.sh b/scripts/dockerize.sh index 2bd22d4..f29bed7 100644 --- a/scripts/dockerize.sh +++ b/scripts/dockerize.sh @@ -16,10 +16,14 @@ docker build -t deepface . # copy weights from your local # docker cp ~/.deepface/weights/. :/root/.deepface/weights/ -# run image +# run the built image # docker run --net="host" deepface docker run -p 5005:5000 deepface +# or pull the pre-built image from docker hub and run it +# docker pull serengil/deepface +# docker run -p 5005:5000 serengil/deepface + # to access the inside of docker image when it is in running status # docker exec -it /bin/sh