]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blobdiff - print-test-results
test: Show accuracy comparison only for non-failed tests
[hercules2020/kcf.git] / print-test-results
index 4bfd54ec222faa788fd3da97da59cf37a868519c..f58705d17dd7e4fd98ff7b68b2a5e63534c5a923 100755 (executable)
@@ -2,7 +2,9 @@
 set -e
 
 declare -A expected_accuracy
-expected_accuracy=([bag]=0.53 [ball1]=0.70 [car1]=0.35 [book]=0.19)
+
+expected_accuracy=([bag]=0.53 [ball1-correct]=0.70 [ball1]=0.35 [car1]=0.35 [book]=0.19
+                  [bmx]=0.45 [crossing]=0.72 [racing]=0.52)
 
 for i in "$@"; do
     [[ "$i" =~ build-(.*)/kcf_vot-(.*)-(.*).log ]]
@@ -12,6 +14,7 @@ for i in "$@"; do
 
     result=$(grep 'Average accuracy:' $i || :)
     if [[ "$result" =~ Average\ accuracy:\ ([0-9.]+) ]]; then
+       result+=" >= ${expected_accuracy[$seq]}"
        if [[ $(echo "${BASH_REMATCH[1]} >= ${expected_accuracy[$seq]:-0}"|bc) -eq 1 ]]; then
            status=ok
        else