Advertisement
Guest User

TS Configuration

a guest
Jul 7th, 2017
2,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.87 KB | None | 0 0
  1. model {
  2. ssd {
  3. num_classes: 2
  4. box_coder {
  5. faster_rcnn_box_coder {
  6. y_scale: 10.0
  7. x_scale: 10.0
  8. height_scale: 5.0
  9. width_scale: 5.0
  10. }
  11. }
  12. matcher {
  13. argmax_matcher {
  14. matched_threshold: 0.5
  15. unmatched_threshold: 0.5
  16. ignore_thresholds: false
  17. negatives_lower_than_unmatched: true
  18. force_match_for_each_row: true
  19. }
  20. }
  21. similarity_calculator {
  22. iou_similarity {
  23. }
  24. }
  25. anchor_generator {
  26. ssd_anchor_generator {
  27. num_layers: 6
  28. min_scale: 0.2
  29. max_scale: 0.95
  30. aspect_ratios: 1.0
  31. aspect_ratios: 2.0
  32. aspect_ratios: 0.5
  33. aspect_ratios: 3.0
  34. aspect_ratios: 0.3333
  35. reduce_boxes_in_lowest_layer: true
  36. }
  37. }
  38. image_resizer {
  39. fixed_shape_resizer {
  40. height: 300
  41. width: 300
  42. }
  43. }
  44. box_predictor {
  45. convolutional_box_predictor {
  46. min_depth: 0
  47. max_depth: 0
  48. num_layers_before_predictor: 0
  49. use_dropout: false
  50. dropout_keep_probability: 0.8
  51. kernel_size: 3
  52. box_code_size: 4
  53. apply_sigmoid_to_scores: false
  54. conv_hyperparams {
  55. activation: RELU_6,
  56. regularizer {
  57. l2_regularizer {
  58. weight: 0.00004
  59. }
  60. }
  61. initializer {
  62. truncated_normal_initializer {
  63. stddev: 0.03
  64. mean: 0.0
  65. }
  66. }
  67. }
  68. }
  69. }
  70. feature_extractor {
  71. type: 'ssd_inception_v2'
  72. min_depth: 16
  73. depth_multiplier: 1.0
  74. conv_hyperparams {
  75. activation: RELU_6,
  76. regularizer {
  77. l2_regularizer {
  78. weight: 0.00004
  79. }
  80. }
  81. initializer {
  82. truncated_normal_initializer {
  83. stddev: 0.03
  84. mean: 0.0
  85. }
  86. }
  87. batch_norm {
  88. train: true,
  89. scale: true,
  90. center: true,
  91. decay: 0.9997,
  92. epsilon: 0.001,
  93. }
  94. }
  95. }
  96. loss {
  97. classification_loss {
  98. weighted_sigmoid {
  99. anchorwise_output: true
  100. }
  101. }
  102. localization_loss {
  103. weighted_smooth_l1 {
  104. anchorwise_output: true
  105. }
  106. }
  107. hard_example_miner {
  108. num_hard_examples: 3000
  109. iou_threshold: 0.99
  110. loss_type: CLASSIFICATION
  111. max_negatives_per_positive: 3
  112. min_negatives_per_image: 0
  113. }
  114. classification_weight: 1.0
  115. localization_weight: 1.0
  116. }
  117. normalize_loss_by_num_matches: true
  118. post_processing {
  119. batch_non_max_suppression {
  120. score_threshold: 1e-8
  121. iou_threshold: 0.6
  122. max_detections_per_class: 100
  123. max_total_detections: 100
  124. }
  125. score_converter: SIGMOID
  126. }
  127. }
  128. }
  129.  
  130. train_config: {
  131. batch_size: 10
  132. optimizer {
  133. rms_prop_optimizer: {
  134. learning_rate: {
  135. exponential_decay_learning_rate {
  136. initial_learning_rate: 0.004
  137. decay_steps: 800720
  138. decay_factor: 0.95
  139. }
  140. }
  141. momentum_optimizer_value: 0.9
  142. decay: 0.9
  143. epsilon: 1.0
  144. }
  145. }
  146. data_augmentation_options {
  147. random_horizontal_flip {
  148. }
  149. }
  150. data_augmentation_options {
  151. ssd_random_crop {
  152. }
  153. }
  154. }
  155.  
  156. train_input_reader: {
  157. tf_record_input_reader {
  158. input_path: "#####/models/object_detection/pascal_train.record"
  159. }
  160. label_map_path: "#####/models/object_detection/data/mine_label_map.pbtxt"
  161. }
  162.  
  163. eval_config: {
  164. num_examples: 58
  165. }
  166.  
  167. eval_input_reader: {
  168. tf_record_input_reader {
  169. input_path: "#####/models/object_detection/pascal_val.record"
  170. }
  171. label_map_path: "#####/models/object_detection/data/final_label_map.pbtxt"
  172. shuffle: false
  173. num_readers: 1
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement