forked from tatz1101/Edge-AI-Platform-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_target.sh
28 lines (20 loc) · 775 Bytes
/
run_target.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
26
27
28
#!/bin/bash
## unpack the test images archive
#tar -xvf ../../fmnist_test.tar.gz
#mv fmnist_test ../../
ln -nsf ../../fmnist_test ./test
## compile the executable for target board
cp ./src/top5_tf_main.cc ./src/tf_main.cc
make
## launch the executable and collect report
./miniVggNet 1 2>&1 | tee ./rpt/logfile_top5_miniVggNet.txt
## launch python script to check top-5 accuracy
python2 ./check_runtime_top5_fashionmnist.py -i ./rpt/logfile_top5_miniVggNet.txt 2>&1 | tee ./rpt/top5_accuracy_fmnist_miniVggNet.txt
## launch script to check fps
source ./run_fps_miniVggNet.sh 2>&1 | tee ./rpt/fps_fmnist_miniVggNet.txt
: '
# archive everything and copy back to your host PC with ssh/scp
cd ../..
tar -cvf target_zcu102.tar ./target_zcu102
gzip -v target_zcu102.tar
'