New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YoloV2 full weights loading, loss function and annotation parser #17
base: master
Are you sure you want to change the base?
Conversation
Adapted from "initial_work" branch based on https://fairyonice.github.io/Part_4_Object_Detection_with_Yolo_using_VOC_2012_data_loss.html
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
=======================================
- Coverage 57.29% 37% -20.3%
=======================================
Files 11 13 +2
Lines 274 427 +153
=======================================
+ Hits 157 158 +1
- Misses 117 269 +152
Continue to review full report at Codecov.
|
Hi, Yavuz |
Hi, Many thanks for the great work! Iulian |
Great stuff @iuliancioarca ! and @Ybakman awesome to see it training!! I think before we merge this PR, we need to make sure that all tests are passing, and that we're not regressing any existing functionality (or at least if we do there's a decent reason to). For instance, this should still serve the v2-tiny version as well as the v2 full etc. @iuliancioarca do you think you could try to get the CI tests to pass? I can add you as collaborators on the CI platforms so that you can cancel/restart instances if that helps? |
As I work on amazon aws p2x.large machines, memory was not a problem. But you indicate a critical point. I will try to solve it. However, if you want to try it now, in preprocessing.jl write => |
Thanks! I managed to train a model with reasonable accuracy even with the reduced number of images. |
Ok, absorbing https://github.com/Ybakman/YoloV2-Trainable makes sense before this PR. @Ybakman would you be able to put together a PR that passes CI tests? I'd do it myself but, I'm afraid I don't have much free time currently |
I've 5 exams in the following 5 days but I can handle that as soon as possible after the final exams. |
Hi,
I managed to generate the full V2 model and to load weights into it (example in Readme). I also worked on the loss function. Basically I tried to continue your work from the 'initial branch'. I had to run in parallel the python code in order to check the array dimensions, otherwise it's a nightmare. There are some differences in the returned values between the two implementations (I think they are related to tf.sparse_softmax_cross_entropy_with_logits), but I only tested on some dummy arrays filled with zeros and ones. What I find strange about the python implementation is that calling the loss function with the same variable as true&predicted array will not return 0 (as I expected).
Anyway, I think the best way to test it is to load some actual data. I also started writing the xml annotation parser for VOC in order to store info in some Julia struct.
Iulian