Skip to content

a python script to prepare face images for machine learning

Notifications You must be signed in to change notification settings

hrkrx/MLFacecut

Repository files navigation

MLFacecut

a python script to prepare face images for machine learning

Usage

Either load from another python script and use the run(...) method or call the script directly like

python prepare_images.py -i example1_small.jpg -f cnn -w "waifu2x-command-line-executeble" -x desiredXsize -y desiredYsize -o out.jpg

About the script

it uses opencv-python, face-recognition, so you might need to pip install those before usage. Also face-recognition is using dlib which is GPU accelerated so install CUDA befor installing face-recognition.

The example face is from https://thispersondoesnotexist.com/

About

a python script to prepare face images for machine learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages