-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_gcloud_scripts.txt
More file actions
114 lines (64 loc) · 6.73 KB
/
main_gcloud_scripts.txt
File metadata and controls
114 lines (64 loc) · 6.73 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
gcloud ml-engine jobs submit training first_object_detectionFPN \
--job-dir=gs://${YOUR_GCS_BUCKET}/train \
--packages ./dist/object_detection-0.1.tar.gz,./slim/dist/slim-0.1.tar.gz,./temp2/pycocotools-2.0.tar.gz \
--module-name object_detection.model_tpu_main \
--runtime-version 1.15 \
--scale-tier BASIC_TPU \
--region us-central1 \
-- \
--model_dir=gs://${YOUR_GCS_BUCKET}/train \
--tpu_zone us-central1 \
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config
gcloud ml-engine jobs submit training first_object_detection_validationFPN \
--job-dir=gs://${YOUR_GCS_BUCKET}/train \
--packages dist/object_detection-0.1.tar.gz,slim/dist/slim-0.1.tar.gz,./temp2/pycocotools-2.0.tar.gz \
--module-name object_detection.model_main \
--runtime-version 1.15 \
--scale-tier BASIC_GPU \
--region us-central1 \
-- \
--model_dir=gs://${YOUR_GCS_BUCKET}/train \
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config \
--checkpoint_dir=gs://${YOUR_GCS_BUCKET}/train
export YOUR_GCS_BUCKET="objectdetectiondaniel"
gcloud ml-engine jobs submit training first_object_detection11 \
--job-dir=gs://${YOUR_GCS_BUCKET}/train \
--packages ./dist/object_detection-0.1.tar.gz,./slim/dist/slim-0.1.tar.gz,./temp2/pycocotools-2.0.tar.gz \
--module-name object_detection.model_main \
--runtime-version 1.15 \
--scale-tier BASIC_GPU \
--region us-central1 \
-- \
--model_dir=gs://${YOUR_GCS_BUCKET}/train \
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config
gcloud ml-engine jobs submit training first_object_detection_validation11 \
--job-dir=gs://${YOUR_GCS_BUCKET}/train \
--packages dist/object_detection-0.1.tar.gz,slim/dist/slim-0.1.tar.gz,./temp2/pycocotools-2.0.tar.gz \
--module-name object_detection.model_main \
--runtime-version 1.15 \
--scale-tier BASIC_GPU \
--region us-central1 \
-- \
--model_dir=gs://${YOUR_GCS_BUCKET}/train \
--pipeline_config_path=gs://${YOUR_GCS_BUCKET}/data/pipeline.config \
--checkpoint_dir=gs://${YOUR_GCS_BUCKET}/train
tflite_convert --graph_def_file=./tflite_graph.pb --output_file=./detect.tflite --input_shapes=1,640,640,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_dev_values=128 --change_concat_input_ranges=false --allow_custom_ops --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --enable_v1_converter
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_tflite_ssd_graph.py --pipeline_config_path=object_detection/pipeline.config --trained_checkpoint_prefix=object_detection/tempfpn/model.ckpt-11100 --output_directory=object_detection/tempfpn --add_postprocessing_op=true
toco --graph_def_file=object_detection/tempfpn/tflite_graph.pb --output_file=object_detection/tempfpn/detect.tflite --input_shapes=1,640,640,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_dev_values=128 --change_concat_input_ranges=false --allow_custom_ops --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE
toco --input_file=object_detection/output_tflite_graph_hat/tflite_graph.pb --output_file=object_detection/output_tflite_graph_hat/detect.tflite --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --inference_type=QUANTIZED_UINT8 --input_shape="1,640,640,3" --input_array=input --output_array=outputs --std_value=127.5 --mean_value=127.5
toco --graph_def_file=./tflite_graph.pb --output_file=./detect.tflite --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --inference_type=QUANTIZED_UINT8 --input_shape="1,640,640,3" --input_array=input --output_array=outputs --std_value=127.5 --mean_value=127.5
edgetpu_compiler detect.tflite -o ./
tflite_convert --graph_def_file=./tflite_graph.pb --output_file=./detect.tflite --input_shapes=1,640,640,3 --input_arrays=normalized_input_image_tensor --output_arrays='TFLite_Detection_PostProcess','TFLite_Detection_PostProcess:1','TFLite_Detection_PostProcess:2','TFLite_Detection_PostProcess:3' --inference_type=QUANTIZED_UINT8 --mean_values=128 --std_dev_values=128 --change_concat_input_ranges=false --allow_custom_ops --input_format=TENSORFLOW_GRAPHDEF --output_format=TFLITE --enable_v1_converter
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_inference_graph.py --input_type=image_tensor --pipeline_config_path=object_detection/model_dir_fpn/pipeline.config --trained_checkpoint_prefix=object_detection/model_dir_fpn/model.ckpt-11100 --output_directory=object_detection/model_dir_fpn/
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_inference_graph.py --input_type=image_tensor --pipeline_config_path=object_detection/model_dir_quantize/pipeline.config --trained_checkpoint_prefix=object_detection/model_dir_quantize/model.ckpt-61068 --output_directory=object_detection/model_dir_quantize/
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/model_main.py -logtostderr -pipeline_config_path=object_detection/pipeline.config --model_dir=object_detection/model_dir2/train
cd C:\Users\DanLa\PycharmProjects\TF_GPU_MODEL\models-master\research
tensorboard --logdir=model_dir2
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_tflite_ssd_graph \
--pipeline_config_path path/to/ssd_mobilenet.config \
--trained_checkpoint_prefix path/to/model.ckpt \
--output_directory path/to/exported_model_directory
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_inference_graph.py --input_type=image_tensor --pipeline_config_path=object_detection/pipeline.config --trained_checkpoint_prefix=object_detection/model_dir2/train/model.ckpt-32956 --output_directory=object_detection/model_dir2/train
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/export_inference_graph.py --input_type=image_tensor --pipeline_config_path=object_detection/pipeline.config --trained_checkpoint_prefix=object_detection/tempfpn/model.ckpt-11100 --output_directory=object_detection/tempfpn
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/legacy/train.py -logtostderr -pipeline_config_path=object_detection/pipeline.config -train_dir=object_detection/model_dir2/train
C:\Users\DanLa\AppData\Local\Programs\Python\Python36\python.exe object_detection/legacy/eval.py -logtostderr -pipeline_config_path=object_detection/pipeline.config -checkpoint_dir=object_detection/model_dir2/train -eval_dir=object_detection/model_dir2/eval