bogsnork / nectarvision

Identifying flowers and quantifying nectar resource in photographs of quadrats
Other
0 stars 0 forks source link

convert predictions back to images #12

Open bogsnork opened 4 years ago

bogsnork commented 4 years ago

boxes still wrong image

bogsnork commented 4 years ago

image

bogsnork commented 4 years ago

just for comparison, here are the anchor boxes: image

bogsnork commented 4 years ago

tried on a different image IMG_5277.JPG. Results weirdly similar: image

bogsnork commented 4 years ago

here's the original: image

bogsnork commented 4 years ago

and here's the category data (not sure what to do with that yet - here each row is a category and each column one of the predicted boxes):

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 -2.6576245 0.720901 -2.4703991 -2.4697139 -2.6673288 -2.4908676 -4.1900697 -3.5933344 -3.2643125 0.1989743 -3.6465828 -1.4398527 -3.9662941 -1.2429739 -3.4317341 -3.8586771
2 -2.4476721 0.6699755 -1.988427 -2.4545503 -3.6230259 -3.2721114 -5.9537339 -3.8041289 -3.4982708 0.7513393 -4.6700459 -1.2488853 -4.7406759 -2.1790991 -3.8756328 -3.6707659
3 -3.4891288 0.7957496 -2.7964506 -2.1243987 -3.7768252 -3.745573 -6.2914062 -3.7237258 -3.7066615 -0.1773055 -4.8743873 -2.9995043 -5.0195866 -1.248244 -4.4440703 -3.293093
4 -2.6713545 -1.3565105 -1.7522229 -2.2344282 -2.4206607 -3.7672148 -5.3083291 -3.1559787 -2.5743594 -0.4980265 -3.299016 -1.726903 -3.4194095 -1.9385618 -4.3818178 -3.3290982
5 -1.709641 -4.479073 -1.537339 -3.338124 -2.733212 -2.359107 -2.487501 -4.577341 -3.785969 -3.12551 -2.329768 -2.381015 -4.98749 -1.814425 -2.688732 -4.279812
6 -0.6444807 -4.6194553 -1.0441719 -5.0564556 -4.1754603 -2.682678 -3.0127704 -5.8013854 -4.5923166 -3.8902793 -2.6908679 -3.0576975 -6.4908276 -2.6765194 -3.0167985 -5.6018734
7 -1.67335 -3.508452 -1.8011 -5.534197 -4.555229 -2.670511 -3.477563 -5.196805 -4.357726 -3.604756 -2.688813 -3.631128 -5.742529 -3.122596 -3.531833 -5.512052
8 -2.226306 -2.738025 -1.340198 -4.643236 -2.726882 -2.194148 -4.038188 -4.518083 -3.548341 -2.223344 -2.403783 -2.872507 -4.440286 -2.940116 -3.957201 -4.414614
9 -1.744819 -3.913663 -2.262975 -2.228824 -3.950631 -1.923197 -3.959206 -2.665083 -4.104163 -3.035345 -2.361326 -1.504393 -5.930589 -2.232353 -4.688734 -2.356803
10 -1.727948 -4.234204 -2.610095 -2.803639 -5.121327 -2.464097 -4.748446 -2.534284 -5.358905 -4.115765 -3.839071 -1.789604 -8.577044 -3.549651 -6.378128 -2.6422
11 -2.718122 -2.700369 -3.188275 -3.232731 -5.133147 -2.591612 -4.90671 -2.178105 -5.399131 -3.162152 -4.310615 -1.382178 -7.276025 -3.07964 -5.677338 -2.167989
12 -3.53739 -2.711634 -3.098397 -3.581429 -4.028253 -2.528322 -4.194594 -2.783182 -4.754732 -1.289836 -3.264314 -2.299094 -5.05144 -3.031725 -4.172525 -2.715627
13 -0.8521778 -3.6642287 -2.618819 -2.036942 -2.181777 -3.0534451 -3.6948347 -3.8888731 -2.1426444 -4.2437716 -2.4831243 -4.2648392 -3.9815366 -2.6849811 -5.7798047 0.614148
14 -0.6987083 -4.4644327 -2.6176829 -1.2146751 -2.2444088 -4.5800686 -4.6179867 -4.3945193 -2.7905688 -6.2992907 -4.1842318 -4.6578212 -5.4399314 -4.7633595 -7.3245997 -0.2505685
15 -1.5835626 -3.7334182 -2.5670626 -0.6712587 -2.2364891 -4.6985307 -4.7912002 -4.2336745 -3.2049768 -4.9366083 -4.0975924 -4.5538058 -4.8278227 -3.8552139 -6.679606 0.7590311
16 -2.4645569 -3.6901491 -2.7036192 -1.1206601 -2.2247727 -3.6328778 -4.3955317 -2.8306265 -3.1186936 -2.8298173 -3.3242369 -3.2794533 -3.5709355 -2.7204163 -5.2103553 0.9650886
17 -0.1751713 -2.1240523 -3.3570554 -0.8627699 -3.6038809 -0.9347592 -3.6932323 -3.6966059 -1.0159703 -2.9198985 -3.0872123 -3.9126382 -2.2768211 -1.7526915 -5.8884869 -0.2186315
18 -0.2252454 -2.873369 -4.4410233 0.1925575 -4.2928457 -2.047724 -5.5510974 -4.6088309 -0.7075543 -4.2921405 -5.6142287 -3.1972218 -3.3206003 -3.1953895 -7.727623 -2.1827643
19 -0.7436264 -2.3223732 -4.5072823 0.2572052 -5.2012281 -2.6285393 -6.6925817 -4.402597 -1.0112141 -2.9595461 -5.148313 -2.8349295 -2.8590033 -2.2086318 -7.2772341 -1.5954362
20 -1.9135754 -3.0196133 -4.0258965 -0.8507061 -3.7399938 -2.4882643 -6.2555699 -3.2353313 -1.2254838 -3.2055087 -4.1260033 -2.4894123 -2.5886323 -2.16347 -5.3907723 0.3694353
21 0.6090474 -2.6442821 -1.7018205 -1.1354285 -4.3062901 -3.1682229 -2.0765102 -3.3064778 0.2018791 -3.6085396 -1.8570956 -4.7929273 -2.819319 -3.3199174 -3.1783495 0.6721443
22 1.702809572 -2.80038619 -2.750756264 -0.67253691 -5.582357883 -4.160793304 -2.814575672 -5.286768436 1.16426456 -5.047382832 -2.744822025 -4.47500658 -4.641002655 -3.321633816 -4.074627399 -0.004863638
23 1.7419114 -3.1243217 -2.7896788 -0.2832289 -5.9404392 -4.2152538 -3.1889331 -4.7536597 1.1024667 -5.9241519 -2.7902908 -4.8162775 -3.2764363 -3.6766338 -3.5490603 0.1013819
24 -0.1230824 -2.204149 -3.140631 -1.8119252 -4.1463609 -3.0088375 -3.3903942 -3.514046 0.6843541 -3.6985865 -2.9283385 -3.9983873 -3.1672604 -3.0933154 -2.7455206 1.2411759
25 0.4274616 -2.5015657 -2.8501499 -0.9077272 -3.9840035 -4.1776052 -2.9339166 -1.96592 -0.3270414 -3.1039114 -1.8166908 -2.2999759 -2.791718 -2.8447285 -4.3071003 0.7116892
26 0.3442306 -1.4973816 -3.4988315 -0.1200694 -5.8315382 -5.3471174 -3.1422369 -3.2876992 -0.6695699 -3.9494724 -2.0662069 -1.4787161 -4.9488692 -2.7535164 -4.8260098 1.2069358
27 0.517786 -1.9806632 -3.6827996 -0.2174785 -5.7310882 -5.4492249 -3.692183 -2.812067 -1.2353026 -5.7929702 -3.6928737 -1.8543425 -3.5026886 -2.8605285 -4.3824701 1.1430233
28 -1.0658915 -0.9992662 -3.4773605 -1.5073165 -4.6371346 -4.2059212 -2.8317335 -2.7605386 -0.4913309 -3.8654361 -2.3306627 -2.6682658 -3.4872868 -2.9539924 -3.8733389 1.5697103
bogsnork commented 4 years ago

ssd_20200223-1957 after 10 runs image

bogsnork commented 4 years ago

OK, major breakthrough: box coordinates had been read in wrong. Now the pics make sense. Here's an example after 5 epochs training: image

bogsnork commented 4 years ago

and here's one after 10 epochs: image

bogsnork commented 4 years ago

result of output_image_print: image

bogsnork commented 4 years ago

and after 40 epochs... image

bogsnork commented 4 years ago

Here's an example of the 16 ground truth boxes selected by the matching logic (note white boxes are not a prediction but the selected gt boxes): image