tensorflow / tensorflow/models
Object Detection: tflite conversion documentation missing metadata adding instructions for Android deployment added in new commit
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.7k
- Forks
- 44.8k
- PR merge metrics
- No merged PRs in 30d
Description
Prerequisites
Please answer the following question for yourself before submitting an issue.
- [ x ] I checked to make sure that this issue has not been filed already.
1. The entire URL of the documentation with the issue
https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android
2. Describe the issue
The links above point to Android example where latest change in code is not reflected in documentation.
https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android
Current example code expects zip based tflite with metadata, but documentation does not provide instruction for it.
Without this step it gives error when deploying to android,
java.lang.IllegalStateException: This model does not contain associated files, and is not a Zip file.
at org.tensorflow.lite.support.metadata.MetadataExtractor.assertZipFile(MetadataExtractor.java:325)
at org.tensorflow.lite.support.metadata.MetadataExtractor.getAssociatedFile(MetadataExtractor.java:165)
at org.tensorflow.lite.examples.detection.tflite.TFLiteObjectDetectionAPIModel.create(TFLiteObjectDetectionAPIModel.java:116)
I have commented on this issue below with detailed information on error,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.