Skip to content

quangster/facial-landmarks

Repository files navigation

Facial Landmarks Detection

PyTorch Lightning Config: Hydra Template

Description

Facial Landmarks Detection

Installation

Pip

# clone project
git clone https://github.com/quangster/facial-landmarks
cd facial-landmarks

# [OPTIONAL] create conda environment
conda create -n myenv python=3.10
conda activate myenv

# install pytorch according to instructions
# https://pytorch.org/get-started/

# install requirements
pip install -r requirements.txt

Conda

# clone project
git clone https://github.com/quangster/facial-landmarks
cd facial-landmarks

# create conda environment and install dependencies
conda env create -f environment.yaml -n myenv

# activate conda environment
conda activate myenv

How to run

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=filter.yaml

You can override any parameter from command line like this

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

Results

Wandb Reports

Final App

About

facial-landmarks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published