Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Face Filter using Deep Learning, Facial Landmarks and Delaunay Triangulation.

License

Notifications You must be signed in to change notification settings

tiendzung/face_filter

Repository files navigation

Description

This project applies a 3D filter to the face by using a model to predict 68 landmark points on the human face (Dlib) combined with Delaunay triangulation to warp the filter onto the face.

How to run

Install dependencies

# clone project
git clone https://github.com/tiendzung/facial_landmarks
cd your-repo-name
# [OPTIONAL] create conda environment
conda create -n myenv python=3.9
conda activate myenv
# install pytorch according to instructions
# https://pytorch.org/get-started/
# install requirements
pip install -r requirements.txt

Train model with default configuration

# train on CPU
python src/train.py trainer=cpu
# train on GPU
python src/train.py trainer=gpu

Train model with chosen experiment configuration from configs/experiment/

python src/train.py experiment=experiment_name.yaml

You can override any parameter from command line like this

python src/train.py trainer.max_epochs=20 data.batch_size=64

You can run program

python src/app/app.py

Demo

About

Face Filter using Deep Learning, Facial Landmarks and Delaunay Triangulation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /