Commit 9309ed63daca130c4f46c59b5e19d760e4dae14c
1 parent
c9abf219
generalized evalGenderRecognition script
Showing
2 changed files
with
5 additions
and
4 deletions
.gitignore
scripts/evalGenderClassification-PCSO.sh
| ... | ... | @@ -5,12 +5,11 @@ if [ ! -f evalGenderClassification-PCSO.sh ]; then |
| 5 | 5 | fi |
| 6 | 6 | |
| 7 | 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 | 11 | # Create a file list by querying the database |
| 13 | 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 | 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 | 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 | 17 | \ No newline at end of file | ... | ... |