-
Notifications
You must be signed in to change notification settings - Fork 0
/
fill_fingerprint_db.sh
executable file
·25 lines (25 loc) · 879 Bytes
/
fill_fingerprint_db.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
25
#!/bin/bash
echo "Starting running python scripts"
source /home/zappatistas20/PycharmProjects/venvs/thesis_dataset_creation/bin/activate
TEMPDIR=/home/zappatistas20/PycharmProjects/thesis_dataset_creation/temp/audio/
cd $TEMPDIR;
COUNTER=$1
while [ $COUNTER -le $2 ]
do
FOLD1="${TEMPDIR}audio_${COUNTER}"
INCR=$((COUNTER+1))
FOLD2="${TEMPDIR}audio_${INCR}"
INCR2=$((COUNTER+2))
FOLD3="${TEMPDIR}audio_${INCR2}"
echo $FOLD1
echo $FOLD2
echo $FOLD3
python /home/zappatistas20/PycharmProjects/thesis_dataset_creation/fingerprinter_cmd.py -T $FOLD1
python /home/zappatistas20/PycharmProjects/thesis_dataset_creation/fingerprinter_cmd.py -T $FOLD2
python /home/zappatistas20/PycharmProjects/thesis_dataset_creation/fingerprinter_cmd.py -T $FOLD3
(( COUNTER ++ ))
(( COUNTER ++ ))
(( COUNTER ++ ))
echo "==========> JUST FINISHED ==================="
done
echo All done