Fast 6DoF Face Alignment and Tracking
Project description
Working in progess...
Fast 6DoF Face Alignment and Tracking
This project purpose is to implement Ultra lightweight 6 DoF Face Alignment and Tracking. This project is capable of realtime tracking face for mobile device.
Installation
Requirements
- torch >= 2.0
- autoalbument >= 1.3.1
Install
pip install -U fdfat
Model Zoo
TODO: add best model
Training
Prepare the dataset
This project use 3d 68 points of landmark (difference from the original 300W dataset). Please go to FaceSynthetics to download the dataset (100K one) and extract it to your disk.
Create your dataset yaml file with the following info:
base_path: <path-to-face-synthesis-dataset>/dataset_100000
train: <path-to-list-train-text-file.txt>
val: <path-to-list-val-text-file.txt>
test: <path-to-list-test-text-file.txt>
note: you can use list train file in datasets/FaceSynthetics for reference.
Start training
fdfat --data <path-to-your-dataset-yaml> --model LightWeightModel
For complete list of parameter, please folow this sample config file: fdfat/cfg/default.yaml
Validation
fdfat --task val --data <path-to-your-dataset-yaml> --model LightWeightModel
Predict
fdfat --task predict --model LightWeightModel --checkpoint <path-to-checkoint> --input <path-to-test-img>
Export
fdfat --task export --model LightWeightModel --checkpoint <path-to-checkoint> --export_format tflite
Credit
- YOLOv8 : Thanks for ultralytics awesome project, I borrow some code from here.
- Ultra-Light-Fast-Generic-Face-Detector-1MB : Thanks for your lightweight face detector
- FaceSynthetics : Thanks for expressive face landmark dataset, it's a good starting point
- head-pose-estimation : Thanks for head pose estimation code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fdfat-0.2.6.1.tar.gz.
File metadata
- Download URL: fdfat-0.2.6.1.tar.gz
- Upload date:
- Size: 46.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
544ecc50373ec8700ba29ca2e10b5f2adaabd53d59ce38c60e166976d06583e9
|
|
| MD5 |
006ede973bdac50d7c57bb57ab2006ac
|
|
| BLAKE2b-256 |
84b044091ef4a37c6f8bddb4da7185d78870f45d194399942cbe39e594ab4e4a
|
File details
Details for the file fdfat-0.2.6.1-py3-none-any.whl.
File metadata
- Download URL: fdfat-0.2.6.1-py3-none-any.whl
- Upload date:
- Size: 63.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aad19eb60071662de069ba5cf98dd8f5cfcdffcd010a23110185a0c74338f07f
|
|
| MD5 |
1d5d3b510832b0ae7c50d8b5d59c5405
|
|
| BLAKE2b-256 |
7e58aea229fc13462367832b66435e98e2afb0c012e7912b7829c176a4057a01
|