-
Notifications
You must be signed in to change notification settings - Fork 8
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
Training / Converting Model #4
Comments
@brianantonelli hmmm. That seems weird. |
@brianantonelli did you resolve this problem? I faced the same issue |
@KleinYuan could you give me a step-by-step solution to make .pb file for using in this repo. |
@macro-dadt |
thank you for your quick reply.
|
@macro-dadt this error usually occurs when you are using a different version of tensorflow to freeze a graph. Have you tried different versions? And also the bazel-bin/tensorflow version may not be the same as your default python's tensorflow, which run previous steps. |
I used the commands listed by @brianantonelli to convert my yolo v1 model (.cfg and .weights) into a frozen graph and its meta file I have 2 questions:
If anybody has faced the above 2 problems, or knows a way to solve it, I would really appreciate the help. |
First off, thank you for putting this repo together!
In preparation for training my own model on YOLO and converting to TF I wanted to prove out the pattern by taking the TinyYOLO VOC weights/config and recreating the frozen memmapped graph that you provide in this repo. After going through the Darkflow docs as well as Tensorflow for Mobile Poets I came up with the following process for converting the graph. The graph loads and runs on my iPhone; however, it seems to just randomly identify non-objects (typically 20-30 per second) which inevitably runs out of memory and crashes the application. I'll provide the steps I took for converting the graph below. Could you please share how you created your graph or provide some feedback?
BTW, the first big red flag I see is when I freeze the TinyYOLO VOC weights using Darkflow my graph is 61MB, but yours is 180MB?!
Here's my process:
Grab TinyYOLO VOC weights and config (I've used PJ's config as well as yours, there are a few differences):
Next I validate that the weights/configs work before freezing:
Next I freeze the graph and validate it still identifies the objects (everything works great):
Then I optimize the graph for inference and test again (still works):
Then I quantize and round the graph and validate (still works, but some accuracy drops as expected):
Finally I enable memory mapping in the graph:
I've tried cutting out steps such as quantizing and memory mapping, but I still run into the same issue where it just randomly identifies non-existent objects. Here's an example from the iOS logs of it just seeing tons of non-existent objects:
Any help you can provide is greatly appreciated! Thanks! 👍
The text was updated successfully, but these errors were encountered: