Teeradej Sawettraporn commited on
Commit
09939c2
·
verified ·
1 Parent(s): 48aeadc

Upload 23 files

Browse files
Files changed (24) hide show
  1. .gitattributes +8 -0
  2. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/checkpoint +16 -0
  3. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-15.data-00000-of-00001 +3 -0
  4. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-15.index +0 -0
  5. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-16.data-00000-of-00001 +3 -0
  6. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-16.index +0 -0
  7. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-17.data-00000-of-00001 +3 -0
  8. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-17.index +0 -0
  9. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-18.data-00000-of-00001 +3 -0
  10. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-18.index +0 -0
  11. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-19.data-00000-of-00001 +3 -0
  12. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-19.index +0 -0
  13. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-20.data-00000-of-00001 +3 -0
  14. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-20.index +0 -0
  15. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-21.data-00000-of-00001 +3 -0
  16. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-21.index +0 -0
  17. TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/train/events.out.tfevents.1716541647.f4f5b6824102.8283.0.v2 +3 -0
  18. TF-object_detection/saved_model/method_1_lite_20k_enhance/detect.tflite +3 -0
  19. TF-object_detection/saved_model/method_1_lite_20k_enhance/labelmap.pbtxt +30 -0
  20. TF-object_detection/saved_model/method_1_lite_20k_enhance/labelmap.txt +6 -0
  21. TF-object_detection/saved_model/method_1_lite_20k_enhance/pipeline_file.config +201 -0
  22. TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/saved_model.pb +3 -0
  23. TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/variables/variables.data-00000-of-00001 +3 -0
  24. TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/variables/variables.index +0 -0
.gitattributes CHANGED
@@ -42,3 +42,11 @@ TF-object_detection/Test_img/test_7.jpg filter=lfs diff=lfs merge=lfs -text
42
  TF-object_detection/Test_img/test_9.jpg filter=lfs diff=lfs merge=lfs -text
43
  TF-object_detection/Method-result.pdf filter=lfs diff=lfs merge=lfs -text
44
  TF-object_detection/model_test.ipynb filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
42
  TF-object_detection/Test_img/test_9.jpg filter=lfs diff=lfs merge=lfs -text
43
  TF-object_detection/Method-result.pdf filter=lfs diff=lfs merge=lfs -text
44
  TF-object_detection/model_test.ipynb filter=lfs diff=lfs merge=lfs -text
45
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-15.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
46
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-16.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
47
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-17.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
48
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-18.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
49
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-19.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
50
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-20.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
51
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-21.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
52
+ TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/checkpoint ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model_checkpoint_path: "ckpt-21"
2
+ all_model_checkpoint_paths: "ckpt-15"
3
+ all_model_checkpoint_paths: "ckpt-16"
4
+ all_model_checkpoint_paths: "ckpt-17"
5
+ all_model_checkpoint_paths: "ckpt-18"
6
+ all_model_checkpoint_paths: "ckpt-19"
7
+ all_model_checkpoint_paths: "ckpt-20"
8
+ all_model_checkpoint_paths: "ckpt-21"
9
+ all_model_checkpoint_timestamps: 1716546224.516489
10
+ all_model_checkpoint_timestamps: 1716546544.9140308
11
+ all_model_checkpoint_timestamps: 1716546864.6664524
12
+ all_model_checkpoint_timestamps: 1716547183.6742487
13
+ all_model_checkpoint_timestamps: 1716547502.9403827
14
+ all_model_checkpoint_timestamps: 1716547822.6192403
15
+ all_model_checkpoint_timestamps: 1716548141.607843
16
+ last_preserved_timestamp: 1716541682.0185933
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-15.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45a9d50f8b179800f9b740b832838c27081e2b798a00d91f76b96240efaef7b3
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-15.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-16.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23237d135de1e36e4937d1dde35e2b88d49276688d777da2e2238652f57ca0d4
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-16.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-17.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05f968782329d8f9744d21254b61308677c5bb218c3b8d1123fc10720060b4ce
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-17.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-18.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ec1bb5e74ff4ca3667521f79918d3831699d43c8490a0d13f36d7ce4f848d03
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-18.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-19.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac260b14dd7314eba481c8b5a52d81baf4f2b85801616592771e526b58bf2212
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-19.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-20.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a9f33ade3e6b81a1419ead11bd80563b0cbed6bf5a40d73fc9642c8076e705b
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-20.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-21.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9de91687f10259c321621c7b7cf1d60412a83d9aa3d77db78ac0e845ba3bfa0
3
+ size 20765490
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/ckpt-21.index ADDED
Binary file (48 kB). View file
 
TF-object_detection/saved_model/method_1_lite_20k_enhance/checkpoint/train/events.out.tfevents.1716541647.f4f5b6824102.8283.0.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba4ce9c2db01129274ac048331aa7a338dbe4517cee9f64eab525aaf1450e8a0
3
+ size 61256476
TF-object_detection/saved_model/method_1_lite_20k_enhance/detect.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78a42f8063ef3d8e09d276b991d84a5bcbb6b2670a187d59450804807fdba68b
3
+ size 11512472
TF-object_detection/saved_model/method_1_lite_20k_enhance/labelmap.pbtxt ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ item {
2
+ id: 1
3
+ name: 'Bed'
4
+ }
5
+
6
+ item {
7
+ id: 2
8
+ name: 'dining table'
9
+ }
10
+
11
+ item {
12
+ id: 3
13
+ name: 'refrigerator'
14
+ }
15
+
16
+ item {
17
+ id: 4
18
+ name: 'tv'
19
+ }
20
+
21
+ item {
22
+ id: 5
23
+ name: 'person'
24
+ }
25
+
26
+ item {
27
+ id: 6
28
+ name: 'pillow'
29
+ }
30
+
TF-object_detection/saved_model/method_1_lite_20k_enhance/labelmap.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Bed
2
+ dining table
3
+ refrigerator
4
+ tv
5
+ person
6
+ pillow
TF-object_detection/saved_model/method_1_lite_20k_enhance/pipeline_file.config ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SSD with Mobilenet v2 FPN-lite (go/fpn-lite) feature extractor, shared box
2
+ # predictor and focal loss (a mobile version of Retinanet).
3
+ # Retinanet: see Lin et al, https://arxiv.org/abs/1708.02002
4
+ # Trained on COCO, initialized from Imagenet classification checkpoint
5
+ # Train on TPU-8
6
+ #
7
+ # Achieves 22.2 mAP on COCO17 Val
8
+
9
+ model {
10
+ ssd {
11
+ inplace_batchnorm_update: true
12
+ freeze_batchnorm: false
13
+ num_classes: 6
14
+ box_coder {
15
+ faster_rcnn_box_coder {
16
+ y_scale: 10.0
17
+ x_scale: 10.0
18
+ height_scale: 5.0
19
+ width_scale: 5.0
20
+ }
21
+ }
22
+ matcher {
23
+ argmax_matcher {
24
+ matched_threshold: 0.5
25
+ unmatched_threshold: 0.5
26
+ ignore_thresholds: false
27
+ negatives_lower_than_unmatched: true
28
+ force_match_for_each_row: true
29
+ use_matmul_gather: true
30
+ }
31
+ }
32
+ similarity_calculator {
33
+ iou_similarity {
34
+ }
35
+ }
36
+ encode_background_as_zeros: true
37
+ anchor_generator {
38
+ multiscale_anchor_generator {
39
+ min_level: 3
40
+ max_level: 7
41
+ anchor_scale: 4.0
42
+ aspect_ratios: [1.0, 2.0, 0.5]
43
+ scales_per_octave: 2
44
+ }
45
+ }
46
+ image_resizer {
47
+ fixed_shape_resizer {
48
+ height: 320
49
+ width: 320
50
+ }
51
+ }
52
+ box_predictor {
53
+ weight_shared_convolutional_box_predictor {
54
+ depth: 128
55
+ class_prediction_bias_init: -4.6
56
+ conv_hyperparams {
57
+ activation: RELU_6,
58
+ regularizer {
59
+ l2_regularizer {
60
+ weight: 0.00004
61
+ }
62
+ }
63
+ initializer {
64
+ random_normal_initializer {
65
+ stddev: 0.01
66
+ mean: 0.0
67
+ }
68
+ }
69
+ batch_norm {
70
+ scale: true,
71
+ decay: 0.997,
72
+ epsilon: 0.001,
73
+ }
74
+ }
75
+ num_layers_before_predictor: 4
76
+ share_prediction_tower: true
77
+ use_depthwise: true
78
+ kernel_size: 3
79
+ }
80
+ }
81
+ feature_extractor {
82
+ type: 'ssd_mobilenet_v2_fpn_keras'
83
+ use_depthwise: true
84
+ fpn {
85
+ min_level: 3
86
+ max_level: 7
87
+ additional_layer_depth: 128
88
+ }
89
+ min_depth: 16
90
+ depth_multiplier: 1.0
91
+ conv_hyperparams {
92
+ activation: RELU_6,
93
+ regularizer {
94
+ l2_regularizer {
95
+ weight: 0.00004
96
+ }
97
+ }
98
+ initializer {
99
+ random_normal_initializer {
100
+ stddev: 0.01
101
+ mean: 0.0
102
+ }
103
+ }
104
+ batch_norm {
105
+ scale: true,
106
+ decay: 0.997,
107
+ epsilon: 0.001,
108
+ }
109
+ }
110
+ override_base_feature_extractor_hyperparams: true
111
+ }
112
+ loss {
113
+ classification_loss {
114
+ weighted_sigmoid_focal {
115
+ alpha: 0.25
116
+ gamma: 2.0
117
+ }
118
+ }
119
+ localization_loss {
120
+ weighted_smooth_l1 {
121
+ }
122
+ }
123
+ classification_weight: 1.0
124
+ localization_weight: 1.0
125
+ }
126
+ normalize_loss_by_num_matches: true
127
+ normalize_loc_loss_by_codesize: true
128
+ post_processing {
129
+ batch_non_max_suppression {
130
+ score_threshold: 1e-8
131
+ iou_threshold: 0.6
132
+ max_detections_per_class: 100
133
+ max_total_detections: 100
134
+ }
135
+ score_converter: SIGMOID
136
+ }
137
+ }
138
+ }
139
+
140
+ train_config: {
141
+ fine_tune_checkpoint_version: V2
142
+ fine_tune_checkpoint: "/content/models/mymodel/ssd_mobilenet_v2_fpnlite_320x320_coco17_tpu-8/checkpoint/ckpt-0"
143
+ fine_tune_checkpoint_type: "detection"
144
+ batch_size: 16
145
+ sync_replicas: true
146
+ startup_delay_steps: 0
147
+ replicas_to_aggregate: 8
148
+ num_steps: 20000
149
+ data_augmentation_options {
150
+ random_horizontal_flip {
151
+ }
152
+ }
153
+ data_augmentation_options {
154
+ random_crop_image {
155
+ min_object_covered: 0.0
156
+ min_aspect_ratio: 0.75
157
+ max_aspect_ratio: 3.0
158
+ min_area: 0.75
159
+ max_area: 1.0
160
+ overlap_thresh: 0.0
161
+ }
162
+ }
163
+ optimizer {
164
+ momentum_optimizer: {
165
+ learning_rate: {
166
+ cosine_decay_learning_rate {
167
+ learning_rate_base: .08
168
+ total_steps: 50000
169
+ warmup_learning_rate: .026666
170
+ warmup_steps: 1000
171
+ }
172
+ }
173
+ momentum_optimizer_value: 0.9
174
+ }
175
+ use_moving_average: false
176
+ }
177
+ max_number_of_boxes: 100
178
+ unpad_groundtruth_tensors: false
179
+ }
180
+
181
+ train_input_reader: {
182
+ label_map_path: "/content/labelmap.pbtxt"
183
+ tf_record_input_reader {
184
+ input_path: "/content/train.tfrecord"
185
+ }
186
+ }
187
+
188
+ eval_config: {
189
+ metrics_set: "coco_detection_metrics"
190
+ use_moving_averages: false
191
+ }
192
+
193
+ eval_input_reader: {
194
+ label_map_path: "/content/labelmap.pbtxt"
195
+ shuffle: false
196
+ num_epochs: 1
197
+ tf_record_input_reader {
198
+ input_path: "/content/val.tfrecord"
199
+ }
200
+ }
201
+
TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/saved_model.pb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dece994a4fec164e48f74e5f077c418643820358fc4d20ee56312d5fe541817
3
+ size 6820129
TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/variables/variables.data-00000-of-00001 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:587ca9314ef05c65eae6c7b3fc062efe5f70f5d7fc42642bca86b8c7e8f0a4f2
3
+ size 10606222
TF-object_detection/saved_model/method_1_lite_20k_enhance/saved_model/variables/variables.index ADDED
Binary file (22.1 kB). View file