-
Notifications
You must be signed in to change notification settings - Fork 74.7k
Build android demo using a custom classifier #7419
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
Comments
@davideb91 That article is somewhat outdated. The model files are now downloaded automatically by Bazel, which is why you're getting conflicts with the manually downloaded ones. You can either delete the files from assets/, or remove the dependencies on the file archives in the tensorflow/examples/android/BUILD file. |
Thanks @andrewharp , it works now! To build the app I ran
in order to optimize my graph, and I copied retrained_label.txt in /android/assets/ .
And I removed other dependencies on the file archives in the tensorflow/examples/android/BUILD file:
When I build my app with Do you have any suggestion please? |
@davideb91 What does adb logcat say? |
@andrewharp This is the output of adb logcat:
|
Is the label file actually in your assets folder? |
@andrewharp In asset folder (tensorflow/tensorflow/examples/android/asset) there are only label and graph file of my retrained model, and I haven't found any file named imagenet_comp_graph_label_strings.txt in tensorflow/*. tensorflow/tensorflow/java/src/main/java/org/tensorflow/examples/LabelImage.java Could one of these files be the problem? |
Solved! |
Great! |
@davideb91 I heave the same problem. Can you please say - which dependencies you set? |
@AnSharipov I set these dependencies in
|
@davideb91 can u pls explain what are these parameters and how to set these values , since i have trained the model in darknet and converted using darkflow |
Hi @davideb91 and @andrewharp I'm working in a street object clasification project. I would like to know if the performance is better if I'll train only a few categories (cars, trucks, bus, pedestrian...) than use a COCO .pb database. Do you test it ? Best regards. |
Gyz I also working on the same project with same model but my own dataset. But facing same error.My app is running but not giving labeling for the images.Do not know what to do. Please help... I also change dependencies as given above but its not working. |
I want build TensorFlow Android Camera Demo using a custom classifier following this tutorial.
When I build the app using
bazel build //tensorflow/examples/android:tensorflow_demo
I get:Thanks in advance!
The text was updated successfully, but these errors were encountered: