forked from tatz1101/Edge-AI-Platform-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freeze.sh
30 lines (22 loc) · 833 Bytes
/
freeze.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
#!/bin/bash
# remove previous results
rm -rf ./freeze
mkdir ./freeze
conda activate decent_q3
# freeze trained graph
echo "#####################################"
echo "FREEZE GRAPH"
echo "#####################################"
freeze_graph --input_graph=./chkpts/inference_graph.pb \
--input_checkpoint=./chkpts/float_model.ckpt \
--input_binary=true \
--output_graph=./freeze/frozen_graph.pb \
--output_node_names=dense_1/BiasAdd
echo "#####################################"
echo "FREEZE GRAPH COMPLETED"
echo "#####################################"
# check possible input/output node names
echo "#####################################"
echo "INSPECT FROZEN GRAPH"
echo "#####################################"
decent_q inspect --input_frozen_graph=./freeze/frozen_graph.pb