Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.87 KB | None | 0 0
  1. Hi Davis,
  2.  
  3. If you're reading this, I really appreciate you taking your time for helping me out on reimplementing MMOD for Python-based ML frameworks.
  4.  
  5. I've checked out the projections between image pyramids, bounding box rectangles from the input <-> output of the convolution layers, alongside IOU of the truth labels and projected labels (as you did in Dlib) to be sure that all possible labels could be projected.
  6.  
  7. The only thing which hasn't been implemented is the random cropper.
  8.  
  9. Despite this though, it seems that the more epochs that get run, loss converges to negative and the number of false positives just keeps on increasing.
  10.  
  11. The arrays in the logs below represent the truth_hit_scores for all 4 images processed through training.
  12.  
  13. Logs during init of training:
  14.  
  15. ```
  16. [ 0. 0. 0. 0. 0. 0.]
  17. Got 8 false detections out of 65 possible. Total detections passing adjust_threshold are 198.
  18. [ 0. -0.95001137 0. ]
  19. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 198.
  20. [ 0. 0. 0.]
  21. Train Epoch: 18 [0/4 (0%)] Loss: 12.760210
  22. Got 9 false detections out of 85 possible. Total detections passing adjust_threshold are 220.
  23. [ 0. 0. 0. 0. 0. -0.93091977
  24. 0. ]
  25. Got 9 false detections out of 80 possible. Total detections passing adjust_threshold are 220.
  26. [ 0. 0. 0. 0. 0. 0.]
  27. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 220.
  28. [ 0. 0. 0.]
  29. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 220.
  30. [-0.93091977 0. 0. ]
  31. Train Epoch: 19 [0/4 (0%)] Loss: 12.453386
  32. Got 6 false detections out of 85 possible. Total detections passing adjust_threshold are 163.
  33. [ 0. 0. -0.90781587 0. 0. 0. 0. ]
  34. Got 7 false detections out of 80 possible. Total detections passing adjust_threshold are 163.
  35. [ 0. 0. 0. 0. 0. 0.]
  36. Got 6 false detections out of 65 possible. Total detections passing adjust_threshold are 163.
  37. [ 0. -0.98961055 0. ]
  38. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 163.
  39. [ 0. 0. 0.]
  40. Train Epoch: 20 [0/4 (0%)] Loss: 12.397964
  41. Got 7 false detections out of 85 possible. Total detections passing adjust_threshold are 210.
  42. [ 0. 0. -0.93060511 0. 0. 0. 0. ]
  43. Got 7 false detections out of 80 possible. Total detections passing adjust_threshold are 210.
  44. [ 0. 0. 0. 0. 0. 0.]
  45. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 210.
  46. [ 0. 0. 0.]
  47. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 210.
  48. [ 0. 0. 0.]
  49. Train Epoch: 21 [0/4 (0%)] Loss: 12.235068
  50. Got 9 false detections out of 85 possible. Total detections passing adjust_threshold are 525.
  51. [-0.75991768 0. 0. -0.9831866 0. 0. 0. ]
  52. Got 9 false detections out of 80 possible. Total detections passing adjust_threshold are 525.
  53. [ 0. 0. 0. -0.66523236 0. 0. ]
  54. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 525.
  55. [ 0. 0. 0.]
  56. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 525.
  57. [ 0. 0. 0.]
  58. Train Epoch: 22 [0/4 (0%)] Loss: 12.127900
  59. Got 6 false detections out of 85 possible. Total detections passing adjust_threshold are 181.
  60. [ 0. 0. 0. -0.96915984 0. -0.92044407
  61. 0. ]
  62. Got 7 false detections out of 80 possible. Total detections passing adjust_threshold are 181.
  63. [ 0. 0. 0. 0. 0. 0.]
  64. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 181.
  65. [ 0. 0. 0.]
  66. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 181.
  67. [-0.92044407 0. 0. ]
  68. Train Epoch: 23 [0/4 (0%)] Loss: 11.538725
  69. Got 4 false detections out of 85 possible. Total detections passing adjust_threshold are 87.
  70. [ 0. 0. 0. 0. 0. 0. 0.]
  71. Got 3 false detections out of 80 possible. Total detections passing adjust_threshold are 87.
  72. [ 0. 0. -0.99219668 0. 0. 0. ]
  73. Got 3 false detections out of 65 possible. Total detections passing adjust_threshold are 87.
  74. [ 0. 0. -0.99219668]
  75. Got 4 false detections out of 65 possible. Total detections passing adjust_threshold are 87.
  76. [ 0. 0. 0.]
  77. Train Epoch: 24 [0/4 (0%)] Loss: 11.658006
  78. Got 7 false detections out of 85 possible. Total detections passing adjust_threshold are 461.
  79. [ 0. 0. 0. 0. 0. 0. 0.]
  80. Got 7 false detections out of 80 possible. Total detections passing adjust_threshold are 461.
  81. [ 0. -0.88002765 -0.8866421 0. 0. 0. ]
  82. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 461.
  83. [ 0. 0. -0.8866421]
  84. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 461.
  85. [ 0. 0. 0.]
  86. Train Epoch: 25 [0/4 (0%)] Loss: 11.209248
  87. Got 9 false detections out of 85 possible. Total detections passing adjust_threshold are 1940.
  88. [ 0. 0. 0. 0. 0. 0. 0.]
  89. Got 10 false detections out of 80 possible. Total detections passing adjust_threshold are 1940.
  90. [ 0. 0. 0. -0.72248888 0. 0. ]
  91. Got 10 false detections out of 65 possible. Total detections passing adjust_threshold are 1940.
  92. [ 0. 0. -0.72248888]
  93. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 1940.
  94. [ 0. 0. 0.]
  95. Train Epoch: 26 [0/4 (0%)] Loss: 11.285807
  96. Got 7 false detections out of 85 possible. Total detections passing adjust_threshold are 2269.
  97. [ 0. 0. 0. 0. 0. 0. 0.]
  98. Got 7 false detections out of 80 possible. Total detections passing adjust_threshold are 2269.
  99. [ 0. 0. 0. 0. 0. 0.]
  100. Got 8 false detections out of 65 possible. Total detections passing adjust_threshold are 2269.
  101. [ 0. -0.78800493 0. ]
  102. Got 8 false detections out of 65 possible. Total detections passing adjust_threshold are 2269.
  103. [-0.63037932 0. 0. ]
  104. Train Epoch: 27 [0/4 (0%)] Loss: 11.185555
  105. Got 8 false detections out of 85 possible. Total detections passing adjust_threshold are 2145.
  106. [ 0. 0. 0. 0. 0. 0. 0.]
  107. Got 9 false detections out of 80 possible. Total detections passing adjust_threshold are 2145.
  108. [ 0. 0. 0. 0. -0.73853564 0. ]
  109. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 2145.
  110. [ 0. -0.78757828 0. ]
  111. Got 9 false detections out of 65 possible. Total detections passing adjust_threshold are 2145.
  112. [-0.62035728 0. 0. ]
  113. Train Epoch: 28 [0/4 (0%)] Loss: 10.981290
  114. Got 7 false detections out of 85 possible. Total detections passing adjust_threshold are 1710.
  115. [ 0. 0. 0. -0.88512164 0. 0. 0. ]
  116. Got 8 false detections out of 80 possible. Total detections passing adjust_threshold are 1710.
  117. [ 0. 0. 0. 0. 0. 0.]
  118. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 1710.
  119. [-0.88512164 -0.82063919 0. ]
  120. Got 8 false detections out of 65 possible. Total detections passing adjust_threshold are 1710.
  121. [-0.69016021 0. 0. ]
  122. Train Epoch: 29 [0/4 (0%)] Loss: 10.690399
  123. Got 6 false detections out of 85 possible. Total detections passing adjust_threshold are 844.
  124. [-0.77424026 0. 0. 0. -0.82664561 0. 0. ]
  125. Got 6 false detections out of 80 possible. Total detections passing adjust_threshold are 844.
  126. [ 0. 0. 0. -0.67760009 0. 0. ]
  127. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 844.
  128. [ 0. -0.82664561 -0.67760009]
  129. Got 7 false detections out of 65 possible. Total detections passing adjust_threshold are 844.
  130. [ 0. 0. 0.]
  131. Train Epoch: 30 [0/4 (0%)] Loss: 10.727098
  132. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 363.
  133. [ 0. -0.88453174 -0.77209729 0. 0. 0. 0. ]
  134. Got 5 false detections out of 80 possible. Total detections passing adjust_threshold are 363.
  135. [ 0. -0.88453174 0. 0. 0. 0. ]
  136. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 363.
  137. [ 0. 0. 0.]
  138. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 363.
  139. [ 0. 0. 0.]
  140. Train Epoch: 31 [0/4 (0%)] Loss: 10.545267
  141. Got 4 false detections out of 85 possible. Total detections passing adjust_threshold are 272.
  142. [ 0. 0. -0.75345498 0. 0. 0. 0. ]
  143. Got 4 false detections out of 80 possible. Total detections passing adjust_threshold are 272.
  144. [ 0. 0. 0. 0. 0. 0.]
  145. Got 4 false detections out of 65 possible. Total detections passing adjust_threshold are 272.
  146. [-0.86723161 0. 0. ]
  147. Got 4 false detections out of 65 possible. Total detections passing adjust_threshold are 272.
  148. [-0.75345498 0. 0. ]
  149. Train Epoch: 32 [0/4 (0%)] Loss: 10.588961
  150. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 460.
  151. [ 0. 0. -0.74106771 0. 0. 0. 0. ]
  152. Got 5 false detections out of 80 possible. Total detections passing adjust_threshold are 460.
  153. [ 0. 0. 0. 0. 0. 0.]
  154. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 460.
  155. [-0.88770908 0. 0. ]
  156. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 460.
  157. [-0.74106771 0. 0. ]
  158. Train Epoch: 33 [0/4 (0%)] Loss: 10.434491
  159. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 749.
  160. [ 0. 0. -0.76613104 0. 0. 0. 0. ]
  161. Got 5 false detections out of 80 possible. Total detections passing adjust_threshold are 749.
  162. [ 0. 0. 0. 0. 0. 0.]
  163. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 749.
  164. [ 0. 0. 0.]
  165. Got 6 false detections out of 65 possible. Total detections passing adjust_threshold are 749.
  166. [-0.76613104 0. 0. ]
  167. Train Epoch: 34 [0/4 (0%)] Loss: 10.403461
  168. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 616.
  169. [-0.84331042 0. 0. 0. 0. 0. 0. ]
  170. Got 4 false detections out of 80 possible. Total detections passing adjust_threshold are 616.
  171. [ 0. 0. 0. -0.69780171 0. -0.97794014]
  172. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 616.
  173. [ 0. 0. -0.69780171]
  174. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 616.
  175. [ 0. 0. 0.]
  176. Train Epoch: 35 [0/4 (0%)] Loss: 10.299458
  177. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 740.
  178. [-0.78949642 0. 0. 0. -0.9208917 0. 0. ]
  179. Got 5 false detections out of 80 possible. Total detections passing adjust_threshold are 740.
  180. [ 0. 0. 0. -0.65821373 0. 0. ]
  181. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 740.
  182. [ 0. -0.9208917 -0.65821373]
  183. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 740.
  184. [ 0. 0. 0.]
  185. Train Epoch: 36 [0/4 (0%)] Loss: 10.204040
  186. Got 5 false detections out of 85 possible. Total detections passing adjust_threshold are 1246.
  187. [ 0. -0.79371285 0. 0. 0. 0. 0. ]
  188. Got 5 false detections out of 80 possible. Total detections passing adjust_threshold are 1246.
  189. [ 0. 0. -0.6737355 0. 0. 0. ]
  190. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 1246.
  191. [ 0. 0. -0.6737355]
  192. Got 5 false detections out of 65 possible. Total detections passing adjust_threshold are 1246.
  193. [ 0. 0. 0.]
  194. ```
  195.  
  196. After a bunch of epochs (counting how many bbox's are suppressed instead of the number of false detections).
  197.  
  198. ```
  199. Ignored 2250 bounding boxes out of 2255. Max number of detections is 85.
  200. [ 94080.4375 0. 0. 0. 0. 0.
  201. 0. ]
  202. Ignored 2250 bounding boxes out of 2255. Max number of detections is 80.
  203. [ 0. 0. 0. 73947.8671875
  204. 11475.16699219 0. ]
  205. Ignored 2250 bounding boxes out of 2255. Max number of detections is 65.
  206. [ 0. 0. 0.]
  207. Ignored 2250 bounding boxes out of 2255. Max number of detections is 65.
  208. [ 0. 94080.4375 0. ]
  209. Train Epoch: 963 [0/4 (0%)] Loss: -130170.796875
  210. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement