Guest User

Untitled

a guest
Jan 18th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.00 KB | None | 0 0
  1. tf.app.run()
  2. INFO:tensorflow:depth of additional conv before box predictor: 0
  3. INFO:tensorflow:depth of additional conv before box predictor: 0
  4. INFO:tensorflow:depth of additional conv before box predictor: 0
  5. INFO:tensorflow:depth of additional conv before box predictor: 0
  6. INFO:tensorflow:depth of additional conv before box predictor: 0
  7. INFO:tensorflow:depth of additional conv before box predictor: 0
  8. Traceback (most recent call last):
  9.  
  10. File "<ipython-input-5-44cda3e31e6a>", line 1, in <module>
  11. tf.app.run()
  12.  
  13. File "/Users/amit.sood/anaconda2/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
  14. _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  15.  
  16. File "<ipython-input-4-8980f3a486a4>", line 48, in main
  17. FLAGS.checkpoint_dir, FLAGS.eval_dir)
  18.  
  19. File "/Users/amit.sood/Documents/Analytics/github/models-master/research/object_detection/evaluator.py", line 210, in evaluate
  20. save_graph_dir=(eval_dir if eval_config.save_graph else ''))
  21.  
  22. File "/Users/amit.sood/Documents/Analytics/github/models-master/research/object_detection/eval_util.py", line 393, in repeated_checkpoint_run
  23. return metrics
  24.  
  25. UnboundLocalError: local variable 'metrics' referenced before assignment
  26.  
  27. # SSD with Mobilenet v1, configured for Oxford-IIIT Pets Dataset.
  28. # Users should configure the fine_tune_checkpoint field in the train config as
  29. # well as the label_map_path and input_path fields in the train_input_reader and
  30. # eval_input_reader. Search for "PATH_TO_BE_CONFIGURED" to find the fields that
  31. # should be configured.
  32.  
  33. model {
  34. ssd {
  35. num_classes: 1
  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. anchor_generator {
  58. ssd_anchor_generator {
  59. num_layers: 6
  60. min_scale: 0.2
  61. max_scale: 0.95
  62. aspect_ratios: 1.0
  63. aspect_ratios: 2.0
  64. aspect_ratios: 0.5
  65. aspect_ratios: 3.0
  66. aspect_ratios: 0.3333
  67. }
  68. }
  69. image_resizer {
  70. fixed_shape_resizer {
  71. height: 300
  72. width: 300
  73. }
  74. }
  75. box_predictor {
  76. convolutional_box_predictor {
  77. min_depth: 0
  78. max_depth: 0
  79. num_layers_before_predictor: 0
  80. use_dropout: false
  81. dropout_keep_probability: 0.8
  82. kernel_size: 1
  83. box_code_size: 4
  84. apply_sigmoid_to_scores: false
  85. conv_hyperparams {
  86. activation: RELU_6,
  87. regularizer {
  88. l2_regularizer {
  89. weight: 0.00004
  90. }
  91. }
  92. initializer {
  93. truncated_normal_initializer {
  94. stddev: 0.03
  95. mean: 0.0
  96. }
  97. }
  98. batch_norm {
  99. train: true,
  100. scale: true,
  101. center: true,
  102. decay: 0.9997,
  103. epsilon: 0.001,
  104. }
  105. }
  106. }
  107. }
  108. feature_extractor {
  109. type: 'ssd_mobilenet_v1'
  110. min_depth: 16
  111. depth_multiplier: 1.0
  112. conv_hyperparams {
  113. activation: RELU_6,
  114. regularizer {
  115. l2_regularizer {
  116. weight: 0.00004
  117. }
  118. }
  119. initializer {
  120. truncated_normal_initializer {
  121. stddev: 0.03
  122. mean: 0.0
  123. }
  124. }
  125. batch_norm {
  126. train: true,
  127. scale: true,
  128. center: true,
  129. decay: 0.9997,
  130. epsilon: 0.001,
  131. }
  132. }
  133. }
  134. loss {
  135. classification_loss {
  136. weighted_sigmoid {
  137. anchorwise_output: true
  138. }
  139. }
  140. localization_loss {
  141. weighted_smooth_l1 {
  142. anchorwise_output: true
  143. }
  144. }
  145. hard_example_miner {
  146. num_hard_examples: 3000
  147. iou_threshold: 0.99
  148. loss_type: CLASSIFICATION
  149. max_negatives_per_positive: 3
  150. min_negatives_per_image: 0
  151. }
  152. classification_weight: 1.0
  153. localization_weight: 1.0
  154. }
  155. normalize_loss_by_num_matches: true
  156. post_processing {
  157. batch_non_max_suppression {
  158. score_threshold: 1e-8
  159. iou_threshold: 0.6
  160. max_detections_per_class: 100
  161. max_total_detections: 100
  162. }
  163. score_converter: SIGMOID
  164. }
  165. }
  166. }
  167.  
  168. train_config: {
  169. batch_size: 24
  170. optimizer {
  171. rms_prop_optimizer: {
  172. learning_rate: {
  173. exponential_decay_learning_rate {
  174. initial_learning_rate: 0.004
  175. decay_steps: 800720
  176. decay_factor: 0.95
  177. }
  178. }
  179. momentum_optimizer_value: 0.9
  180. decay: 0.9
  181. epsilon: 1.0
  182. }
  183. }
  184. fine_tune_checkpoint: ""
  185. from_detection_checkpoint: true
  186. # Note: The below line limits the training process to 200K steps, which we
  187. # empirically found to be sufficient enough to train the pets dataset. This
  188. # effectively bypasses the learning rate schedule (the learning rate will
  189. # never decay). Remove the below line to train indefinitely.
  190. num_steps: 2500
  191. data_augmentation_options {
  192. random_horizontal_flip {
  193. }
  194. }
  195. data_augmentation_options {
  196. ssd_random_crop {
  197. }
  198. }
  199. }
  200.  
  201. train_input_reader: {
  202. tf_record_input_reader {
  203. input_path: "/Users/amit.sood/Documents/Analytics/github/Deep-Learning-master/amit/items_train_new.record"
  204. }
  205. label_map_path: "/Users/amit.sood/Documents/Analytics/github/Deep-Learning-master/amit/toy_label_map.pbtxt"
  206. }
  207.  
  208. eval_config: {
  209. num_examples: 2000
  210. # Note: The below line limits the evaluation process to 10 evaluations.
  211. # Remove the below line to evaluate indefinitely.
  212. max_evals: 10
  213. }
  214.  
  215. eval_input_reader: {
  216. tf_record_input_reader {
  217. input_path: "/Users/amit.sood/Documents/Analytics/github/Deep-Learning-master/amit/items_val_new.record"
  218. }
  219. label_map_path: "/Users/amit.sood/Documents/Analytics/github/Deep-Learning-master/amit/toy_label_map.pbtxt"
  220. shuffle: false
  221. num_readers: 1
  222. }
Add Comment
Please, Sign In to add comment