Commit 9309ed63daca130c4f46c59b5e19d760e4dae14c

Authored by Josh Klontz
1 parent c9abf219

generalized evalGenderRecognition script

.gitignore
@@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
4 data/*/img 4 data/*/img
5 data/*/vid 5 data/*/vid
6 data/PCSO/* 6 data/PCSO/*
  7 +data/lfpw
7 build* 8 build*
8 scripts/results 9 scripts/results
9 10
@@ -38,3 +39,4 @@ scripts/results @@ -38,3 +39,4 @@ scripts/results
38 ### autogenerated sigsets ### 39 ### autogenerated sigsets ###
39 data/INRIAPerson/sigset 40 data/INRIAPerson/sigset
40 data/KTH/sigset 41 data/KTH/sigset
  42 +
scripts/evalGenderClassification-PCSO.sh
@@ -5,12 +5,11 @@ if [ ! -f evalGenderClassification-PCSO.sh ]; then @@ -5,12 +5,11 @@ if [ ! -f evalGenderClassification-PCSO.sh ]; then
5 fi 5 fi
6 6
7 export BR=../build/app/br/br 7 export BR=../build/app/br/br
8 -export genderAlg=GenderClassification  
9 -  
10 -export PCSO_DIR=/user/pripshare/Databases/FaceDatabases/PCSO/PCSO/ 8 +export ALGORITHM=GenderClassification
  9 +export PCSO_DIR=../data/PCSO/img
11 10
12 # Create a file list by querying the database 11 # Create a file list by querying the database
13 $BR -useGui 0 -quiet -algorithm Identity -enroll "$PCSO_DIR/PCSO.db[query='SELECT File,Gender,PersonID FROM PCSO', subset=1:8000]" terminal.txt > Input.txt 12 $BR -useGui 0 -quiet -algorithm Identity -enroll "$PCSO_DIR/PCSO.db[query='SELECT File,Gender,PersonID FROM PCSO', subset=1:8000]" terminal.txt > Input.txt
14 13
15 # Enroll the file list and evaluate performance 14 # Enroll the file list and evaluate performance
16 -$BR -useGui 0 -algorithm $genderAlg -path $PCSO_DIR/Images -enroll Input.txt Output.txt -evalClassification Output.txt Input.txt Gender  
17 \ No newline at end of file 15 \ No newline at end of file
  16 +$BR -useGui 0 -algorithm $ALGORITHM -path $PCSO_DIR -enroll Input.txt Output.txt -evalClassification Output.txt Input.txt Gender
18 \ No newline at end of file 17 \ No newline at end of file