Commit b0db05d892f28b313a043bc980a859eb6207866b

Authored by bhklein
1 parent 8ed3678e

example script for training/testing BLUFR

scripts/evalFaceRecognition-BLUFR.sh 0 → 100644
  1 +#!/bin/bash
  2 +
  3 +#input algorithm string as argument
  4 +ALGORITHM=$1
  5 +
  6 +if [ ! -f evalFaceRecognition-BLUFR.sh ]; then
  7 + echo "Run this script from the scripts folder!"
  8 + exit
  9 +fi
  10 +
  11 +if ! hash br 2>/dev/null; then
  12 + echo "Can't find 'br'. Did you forget to build and install OpenBR? Here's some help: http://openbiometrics.org/docs/install/index.html"
  13 + exit
  14 +fi
  15 +
  16 +# Get the data
  17 +./downloadDatasets.sh
  18 +
  19 +if [ ! -e Algorithm_Split ]; then
  20 + mkdir Algorithm_Split
  21 +fi
  22 +
  23 +for i in `seq 1 10`; do
  24 + br -algorithm ${ALGORITHM} -path ../data/LFW/img -train ../data/LFW/sigset/BLUFR/split${i}/train${i}.xml -compare ../data/LFW/sigset/BLUFR/split${i}/gallery${i}.xml ../data/LFW/sigset/BLUFR/split${i}/probe${i}.xml Algorithm_Split/newAlgorithm_BLUFR${i}.eval
  25 +done
  26 +
  27 +br -plot Algorithm_Split/* BLUFR.pdf[smooth=Split]
0 28 \ No newline at end of file
... ...