From 2ca2ed58611a2c1e0ae8fb16ca7fcc7cfd543507 Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Thu, 21 Nov 2013 17:04:04 -0500 Subject: [PATCH] Add a script running FaceRecognition using the LFW protocol --- scripts/evalFaceRecognition-LFW.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+), 0 deletions(-) create mode 100755 scripts/evalFaceRecognition-LFW.sh diff --git a/scripts/evalFaceRecognition-LFW.sh b/scripts/evalFaceRecognition-LFW.sh new file mode 100755 index 0000000..4f0e6c4 --- /dev/null +++ b/scripts/evalFaceRecognition-LFW.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +ALGORITHM=FaceRecognition + +if [ ! -f evalFaceRecognition-LFW.sh ]; then + echo "Run this script from the scripts folder!" + exit +fi + +if ! hash br 2>/dev/null; then + echo "Can't find 'br'. Did you forget to build and install OpenBR? Here's some help: http://openbiometrics.org/doxygen/latest/installation.html" + exit +fi + +# Get the data +./downloadDatasets.sh + +if [ ! -e Algorithm_Dataset ]; then + mkdir Algorithm_Dataset +fi + +# Run the LFW test protocol +br -useGui 0 -algorithm $ALGORITHM -path ../data/LFW/img/ -crossValidate 10 -pairwiseCompare ../data/LFW/sigset/test_image_restricted_target.xml ../data/LFW/sigset/test_image_restricted_query.xml ${ALGORITHM}_LFW.mtx -convert Output ${ALGORITHM}_lfw.mtx Algorithm_Dataset/${ALGORITHM}_LFW%1.eval + +# Plot results +br -useGui 0 -plot Algorithm_Dataset/* 'lfw_results.pdf[smooth=Dataset,rocOptions[yLimits=(0,1)]]' -- libgit2 0.21.4