-
Notifications
You must be signed in to change notification settings - Fork 0
/
batchclassify.sh
executable file
·26 lines (15 loc) · 1.04 KB
/
batchclassify.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# Run abc-classify in non-interactive mode
#
# $1 participantCode
# $2 trainingframes
videodir=/media/sf_spot_the_difference/video/
trackerdir=/media/sf_spot_the_difference/openface/
extgtdir=/home/zzalsdme/IDInteraction/spot_the_difference/part1/
pcs=_front
extgts=checkGTwebcam2.csv
startframe=`head -1 ${extgtdir}${1}${extgts} |awk -F"," '{print $1}'`
endframe=`tail -1 ${extgtdir}${1}${extgts} |awk -F"," '{print $1}'`
echo $startframe $endframe
./abc-classify.py --videofile ${videodir}${1}${pcs}.mp4 --trackerfile ${trackerdir}${1}${pcs}.openface --startframe $startframe --endframe $endframe --extgt ${extgtdir}${1}${extgts} --externaltrainingframes $2 --useexternalgt --participantcode ${1}shuffle --summaryfile summaryresults.csv
./abc-classify.py --videofile ${videodir}${1}${pcs}.mp4 --trackerfile ${trackerdir}${1}${pcs}.openface --startframe $startframe --endframe $endframe --extgt ${extgtdir}${1}${extgts} --externaltrainingframes $2 --useexternalgt --participantcode ${1}noshuffle --summaryfile summaryresults.csv --noshuffle