from FAL detection
pip install -r requirements.txt
Run bash weights/download_weights.sh
python global_classifier.py --input_path examples/modified.jpg --model_path weights/global.pth
python local_detector.py --input_path examples/modified.jpg --model_path weights/local.pth --dest_folder out/
Note: Our models are trained on faces cropped by the dlib CNN face detector. Although in both scripts we included the --no_crop option to run the models without face crops, it is used for images with already cropped faces.
Evaluate the dataset, run:
cd data
bash download_valset.sh
cd ..
# Run evaluation script. Model weights need to be downloaded.
python eval.py --dataroot data --global_pth weights/global.pth --local_pth weights/local.pth --gpu_id 0```