evalGenderClassification-PCSO.sh 605 Bytes
#!/bin/bash
if [ ! -f evalGenderClassification-PCSO.sh ]; then
  echo "Run this script from the scripts folder!"
  exit
fi

export BR=../build/app/br/br
export ALGORITHM=GenderClassification
export PCSO_DIR=../data/PCSO/img

# Create a file list by querying the database
$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

# Enroll the file list and evaluate performance
$BR -useGui 0  -algorithm $ALGORITHM -path $PCSO_DIR -enroll Input.txt Output.txt -evalClassification Output.txt Input.txt Gender