https://github.com/stellarbear/deepface.mp4.docker
https://github.com/stellarbear/deepface.mp4.docker
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stellarbear/deepface.mp4.docker
- Owner: stellarbear
- License: apache-2.0
- Created: 2025-03-01T10:15:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-02T11:49:56.000Z (over 1 year ago)
- Last Synced: 2025-03-22T02:16:22.841Z (about 1 year ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Run the [deepface](https://github.com/serengil/deepface/) in a Docker container against mp4 files.
## TLDR
```
./bin/run.sh
```
or
```
DEEPFACE_SKIP_FRAME=24 docker compose run deepface
```
## Step by step
### 1. Build python & deepface image (single run)
```
docker compose build --progress=plain
```
### 2. Prepare your files
Place all the files in the ```./volume/input/``` directory
### 3. Run the docker compose
```
docker compose run deepface
```
Configure defaults
```
DEEPFACE_DETECTOR=opencv DEEPFACE_SKIP_FRAME=1 docker compose run deepface
DEEPFACE_DETECTOR=retinaface DEEPFACE_SKIP_FRAME=24 docker compose run deepface
DEEPFACE_DETECTOR=mtcnn DEEPFACE_SKIP_FRAME=24 docker compose run deepface
```
| Argument | Values | Defaults |
| -------- | ------- |------- |
| DEEPFACE_DETECTOR | opencv, retinaface, mtcnn, ssd, dlib, mediapipe, yolov8, centerface [description](https://github.com/serengil/deepface#:~:text=its%20tutorial.-,Face%20Detection%20and%20Alignment,-%2D%20Demo) | opencv
| DEEPFACE_SKIP_FRAME | 1, 5, 24, etc (depends on the model) | 10
### 4. Result
You can find the result in the ```./volume/output/``` directory
### 5. Local development
```
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 src/analyze.py
```