Mercurial > hg > silvet
comparison testdata/evaluation/run-piano.sh @ 271:10d8bd634a77
Docs, fix to temporary file removal in test script
author | Chris Cannam |
---|---|
date | Sat, 26 Jul 2014 10:18:01 +0100 |
parents | 40684b5dd478 |
children | bcfdaa708992 |
comparison
equal
deleted
inserted
replaced
270:62b92d9b566a | 271:10d8bd634a77 |
---|---|
40 | 40 |
41 tmpwav="/tmp/$$.wav" | 41 tmpwav="/tmp/$$.wav" |
42 | 42 |
43 transfile="/tmp/$$transform.ttl" | 43 transfile="/tmp/$$transform.ttl" |
44 | 44 |
45 trap 'rm -f "$outfile" "$tmpwav" "$instfile" "$transfile" "$outfile.lab"' 0 | 45 trap 'rm -f "$outfile" "$tmpwav" "$transfile" "$reference.lab" "$outfile.lab"' 0 |
46 | 46 |
47 infiles=$(find "$piano_path" -name \*.wav | sort) | 47 infiles=$(find "$piano_path" -name \*.wav | sort) |
48 | 48 |
49 echo | 49 echo |
50 echo "Input files are:" | 50 echo "Input files are:" |
112 fi; | 112 fi; |
113 echo | 113 echo |
114 echo "Validating against ground truth at $ms ms:" | 114 echo "Validating against ground truth at $ms ms:" |
115 egrep '(^[0-9]\.)|(^[012][0-9]\.)' "../piano-groundtruth/$filename.lab" > "$reference.lab" | 115 egrep '(^[0-9]\.)|(^[012][0-9]\.)' "../piano-groundtruth/$filename.lab" > "$reference.lab" |
116 "$yc" ../scripts/evaluate_lab.yeti "$ms" "$reference.lab" "$outfile.lab" | sed 's,$,'"$mark"',' | 116 "$yc" ../scripts/evaluate_lab.yeti "$ms" "$reference.lab" "$outfile.lab" | sed 's,$,'"$mark"',' |
117 cp "$reference.lab" /tmp/reference.lab | |
118 cp "$outfile.lab" /tmp/detected.lab | |
119 done; | 117 done; |
120 echo | 118 echo |
121 done | 119 done |
122 done | 120 done |
123 done | 121 done |