|
| 1 | +model { |
| 2 | + ssd { |
| 3 | + num_classes: 4 |
| 4 | + image_resizer { |
| 5 | + fixed_shape_resizer { |
| 6 | + height: 300 |
| 7 | + width: 300 |
| 8 | + } |
| 9 | + } |
| 10 | + feature_extractor { |
| 11 | + type: "ssd_mobilenet_v1" |
| 12 | + depth_multiplier: 1.0 |
| 13 | + min_depth: 16 |
| 14 | + conv_hyperparams { |
| 15 | + regularizer { |
| 16 | + l2_regularizer { |
| 17 | + weight: 3.9999998989515007e-05 |
| 18 | + } |
| 19 | + } |
| 20 | + initializer { |
| 21 | + truncated_normal_initializer { |
| 22 | + mean: 0.0 |
| 23 | + stddev: 0.029999999329447746 |
| 24 | + } |
| 25 | + } |
| 26 | + activation: RELU_6 |
| 27 | + batch_norm { |
| 28 | + decay: 0.9997000098228455 |
| 29 | + center: true |
| 30 | + scale: true |
| 31 | + epsilon: 0.0010000000474974513 |
| 32 | + train: true |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | + box_coder { |
| 37 | + faster_rcnn_box_coder { |
| 38 | + y_scale: 10.0 |
| 39 | + x_scale: 10.0 |
| 40 | + height_scale: 5.0 |
| 41 | + width_scale: 5.0 |
| 42 | + } |
| 43 | + } |
| 44 | + matcher { |
| 45 | + argmax_matcher { |
| 46 | + matched_threshold: 0.5 |
| 47 | + unmatched_threshold: 0.5 |
| 48 | + ignore_thresholds: false |
| 49 | + negatives_lower_than_unmatched: true |
| 50 | + force_match_for_each_row: true |
| 51 | + } |
| 52 | + } |
| 53 | + similarity_calculator { |
| 54 | + iou_similarity { |
| 55 | + } |
| 56 | + } |
| 57 | + box_predictor { |
| 58 | + convolutional_box_predictor { |
| 59 | + conv_hyperparams { |
| 60 | + regularizer { |
| 61 | + l2_regularizer { |
| 62 | + weight: 3.9999998989515007e-05 |
| 63 | + } |
| 64 | + } |
| 65 | + initializer { |
| 66 | + truncated_normal_initializer { |
| 67 | + mean: 0.0 |
| 68 | + stddev: 0.029999999329447746 |
| 69 | + } |
| 70 | + } |
| 71 | + activation: RELU_6 |
| 72 | + batch_norm { |
| 73 | + decay: 0.9997000098228455 |
| 74 | + center: true |
| 75 | + scale: true |
| 76 | + epsilon: 0.0010000000474974513 |
| 77 | + train: true |
| 78 | + } |
| 79 | + } |
| 80 | + min_depth: 0 |
| 81 | + max_depth: 0 |
| 82 | + num_layers_before_predictor: 0 |
| 83 | + use_dropout: false |
| 84 | + dropout_keep_probability: 0.800000011920929 |
| 85 | + kernel_size: 1 |
| 86 | + box_code_size: 4 |
| 87 | + apply_sigmoid_to_scores: false |
| 88 | + } |
| 89 | + } |
| 90 | + anchor_generator { |
| 91 | + ssd_anchor_generator { |
| 92 | + num_layers: 6 |
| 93 | + min_scale: 0.20000000298023224 |
| 94 | + max_scale: 0.949999988079071 |
| 95 | + aspect_ratios: 1.0 |
| 96 | + aspect_ratios: 2.0 |
| 97 | + aspect_ratios: 0.5 |
| 98 | + aspect_ratios: 3.0 |
| 99 | + aspect_ratios: 0.33329999446868896 |
| 100 | + } |
| 101 | + } |
| 102 | + post_processing { |
| 103 | + batch_non_max_suppression { |
| 104 | + score_threshold: 9.99999993922529e-09 |
| 105 | + iou_threshold: 0.6000000238418579 |
| 106 | + max_detections_per_class: 100 |
| 107 | + max_total_detections: 100 |
| 108 | + } |
| 109 | + score_converter: SIGMOID |
| 110 | + } |
| 111 | + normalize_loss_by_num_matches: true |
| 112 | + loss { |
| 113 | + localization_loss { |
| 114 | + weighted_smooth_l1 { |
| 115 | + anchorwise_output: true |
| 116 | + } |
| 117 | + } |
| 118 | + classification_loss { |
| 119 | + weighted_sigmoid { |
| 120 | + anchorwise_output: true |
| 121 | + } |
| 122 | + } |
| 123 | + hard_example_miner { |
| 124 | + num_hard_examples: 3000 |
| 125 | + iou_threshold: 0.9900000095367432 |
| 126 | + loss_type: CLASSIFICATION |
| 127 | + max_negatives_per_positive: 3 |
| 128 | + min_negatives_per_image: 0 |
| 129 | + } |
| 130 | + classification_weight: 1.0 |
| 131 | + localization_weight: 1.0 |
| 132 | + } |
| 133 | + } |
| 134 | +} |
| 135 | +train_config { |
| 136 | + batch_size: 16 |
| 137 | + data_augmentation_options { |
| 138 | + random_horizontal_flip { |
| 139 | + } |
| 140 | + } |
| 141 | + data_augmentation_options { |
| 142 | + ssd_random_crop { |
| 143 | + } |
| 144 | + } |
| 145 | + optimizer { |
| 146 | + rms_prop_optimizer { |
| 147 | + learning_rate { |
| 148 | + exponential_decay_learning_rate { |
| 149 | + initial_learning_rate: 0.004000000189989805 |
| 150 | + decay_steps: 800720 |
| 151 | + decay_factor: 0.949999988079071 |
| 152 | + } |
| 153 | + } |
| 154 | + momentum_optimizer_value: 0.8999999761581421 |
| 155 | + decay: 0.8999999761581421 |
| 156 | + epsilon: 1.0 |
| 157 | + } |
| 158 | + } |
| 159 | + fine_tune_checkpoint: "D:/models/research/images/ssd_mobilenet_v1_coco_11_06_2017/model.ckpt" |
| 160 | + from_detection_checkpoint: true |
| 161 | + num_steps: 200000 |
| 162 | +} |
| 163 | +train_input_reader { |
| 164 | + label_map_path: "D:/models/research/images/data/object-detection.pbtxt" |
| 165 | + tf_record_input_reader { |
| 166 | + input_path: "D:/models/research/images/data/train.record" |
| 167 | + } |
| 168 | +} |
| 169 | +eval_config { |
| 170 | + num_examples: 2000 |
| 171 | + max_evals: 10 |
| 172 | + use_moving_averages: false |
| 173 | +} |
| 174 | +eval_input_reader { |
| 175 | + label_map_path: "D:/models/research/images/data/object-detection.pbtxt" |
| 176 | + shuffle: false |
| 177 | + num_readers: 1 |
| 178 | + tf_record_input_reader { |
| 179 | + input_path: "D:/models/research/images/data/test.record" |
| 180 | + } |
| 181 | +} |
0 commit comments