Commit 7b8abf96d5e19009aa00395a5d8c33eb441a2b78
1 parent
48d8b3cc
fixed up scripts
Showing
2 changed files
with
8 additions
and
4 deletions
scripts/evalAgeRegression-PCSO.sh
| ... | ... | @@ -4,6 +4,8 @@ if [ ! -f evalAgeRegression-PCSO.sh ]; then |
| 4 | 4 | exit |
| 5 | 5 | fi |
| 6 | 6 | |
| 7 | -br -quiet -enroll "../data/PCSO/PCSO.db[query='SELECT File,Age,PersonID FROM PCSO WHERE Age >= 15 AND AGE <= 75', subset=1:200]" terminal.txt > Input.txt | |
| 7 | +# Create a file list by querying the database | |
| 8 | +br -quiet -algorithm Identity -enroll "../data/PCSO/PCSO.db[query='SELECT File,Age,PersonID FROM PCSO WHERE Age >= 15 AND AGE <= 75', subset=1:200]" terminal.txt > Input.txt | |
| 8 | 9 | |
| 9 | -br -algorithm AgeRegression -path ../data/PCSO/Images -enroll Input.txt Output.txt -evalRegression Output.txt Input.txt | |
| 10 | +# Enroll the file list and evaluate performance | |
| 11 | +br -algorithm AgeRegression -path ../data/PCSO/img -enroll Input.txt Output.txt -evalRegression Output.txt Input.txt | ... | ... |
scripts/evalGenderClassification-PCSO.sh
| ... | ... | @@ -4,6 +4,8 @@ if [ ! -f evalGenderClassification-PCSO.sh ]; then |
| 4 | 4 | exit |
| 5 | 5 | fi |
| 6 | 6 | |
| 7 | -br -quiet -enroll "../data/PCSO/PCSO.db[query='SELECT File,Gender,PersonID FROM PCSO', subset=1:8000]" terminal.txt > Input.txt | |
| 7 | +# Create a file list by querying the database | |
| 8 | +br -quiet -algorithm Identity -enroll "../data/PCSO/PCSO.db[query='SELECT File,Gender,PersonID FROM PCSO', subset=1:8000]" terminal.txt > Input.txt | |
| 8 | 9 | |
| 9 | -br -algorithm GenderClassification -path ../data/PCSO/Images -enroll Input.txt Output.txt -evalClassification Output.txt Input.txt | |
| 10 | +# Enroll the file list and evaluate performance | |
| 11 | +br -algorithm GenderClassification -path ../data/PCSO/img -enroll Input.txt Output.txt -evalClassification Output.txt Input.txt | ... | ... |