/
run_all.sh
executable file
·67 lines (43 loc) · 1.85 KB
/
run_all.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
###############################################################################################################
# Run the whole Vitis AI workflow.
# First, launch the Vitis AI Docker image for CPU : source ./workflow/0_start_docker_cpu.sh
###############################################################################################################
# Set useful environment variables
source ./workflow/1_set_env.sh
# Build testing set
source ./workflow/2_build_test_set.sh
###############################################################################################################
# Run Darknet model
source ./workflow/3_run_darknet.sh
###############################################################################################################
# Convert Darknet model to TensorFlow frozen graph
source ./workflow/4_darknet_keras_tf.sh
# Display name of input and output nodes
source ./workflow/5_get_io_tensors.sh
# Visualize the model with TensorBoard
source ./workflow/6_run_tensorboard.sh
# Run TensorFlow graph
source ./workflow/7_run_graph.sh
# Evaluate TensorFlow graph
source ./workflow/8_eval.sh
###############################################################################################################
# Quantize model
source ./workflow/9_quantize_model.sh
# Compile model
source ./workflow/10_compile_model.sh
# Compile App
source ./workflow/11_compile_app
# Create prototxt file
source ./workflow/12_create_prototxt.sh
###############################################################################################################
# Add prototxt file to target folder
source ./workflow/13_add_prototxt.sh
# Deploy model
source ./workflow/14_deploy_model.sh
# Load the overlay for U280
source ./workflow/15_load_overlay.sh
# Run the application
source ./workflow/16_run_app.sh
# Measure mAP score
source ./workflow/17_eval_score.sh