docker hub info added

This commit is contained in:
Sefik Ilkin Serengil 2024-06-03 20:10:51 +01:00
parent f0ffe1978c
commit 0538c207b0
2 changed files with 7 additions and 3 deletions

View File

@ -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
```
<p align="center"><img src="https://raw.githubusercontent.com/serengil/deepface/master/icon/deepface-dockerized-v2.jpg" width="50%" height="50%"></p>
**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.

View File

@ -16,10 +16,14 @@ docker build -t deepface .
# copy weights from your local
# docker cp ~/.deepface/weights/. <CONTAINER_ID>:/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 <CONTAINER_ID> /bin/sh