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
How to read Android Demo Detection Model Priors.pb file ? #6670
Comments
@AlexandreBriot The easiest thing to do would be to add tensorflow/examples/android/proto/box_coder.proto to CORE_PROTO_SRCS in tensorflow/core/BUILD (you may need to copy the file), and then you should be able to rebuild TF with support for reading it. It's not there already simply because it's a very model-specific proto only currently used for the demo. |
@andrewharp Hello Andrew and thank you for your precious help !
Could you give me your advice on that part ? |
@AlexandreBriot We'll probably update the code soon to just load from a txt file, as separately supporting a proto build in the Android example adds disproportionate overhead. In the meantime, I've exported the entire box prior proto to text, which you should be able to easily load into your Python code: https://gist.github.com/andrewharp/136b07af1f221e9c95b383889f9911e0 edit: leaving this issue open to track until the discussed conversion is complete |
@andrewharp Thanks for your answer ! |
…n reading from a proto file in C++ code, in order to reduce code/build complexity. New model file archive with corresponding changes has been uploaded to https://storage.googleapis.com/download.tensorflow.org/models/mobile_multibox_v1a.zip Resolves tensorflow#6670 Change: 144872035
@andrewharp I have a trained spam detection model trained using keras and have got the .pb I am trying it to implement it into a mobile app. Can you please guide me to the right documentation please. It will be of great help. |
Hello !
I would like to look into the assets file : multibox_location_priors.pb which contains boxpriors locations.
I want to use them in a iPythonNotebook to test the model with offline images but I don't know how to access properly to the values for all locations.
Is there any easy way to parse the file and get the locations values like it is possible to do with graph.pb file using these lines
Thanks in advance for your help
Alex
The text was updated successfully, but these errors were encountered: