examples
examples copied to clipboard
TensorFlow examples
There is an issue when application is closed. `tlModel` is set to null in `onDestroy()` but `InferenceThread` still calls `tlModel.predict` method without checking a null. > `Prediction[] predictions = tlModel.predict(rgbImage);`...
The Model which you are using in this example takes input 257x257(https://github.com/tensorflow/examples/blob/master/lite/examples/posenet/android/posenet/download.gradle#L2) image whereas it is 257x353 here. Which was throwing `java.lang.IllegalArgumentException: Cannot convert between a TensorFlowLite buffer with 792588...
Some NNAPI accelerators are fp16 only. Add an option to allow fp32 on fp16 accelerators.
Fixes https://github.com/tensorflow/tensorflow/issues/35809
time for Normalizing bitmap to [-1,1] has been decreased by a factor of 8.
In tflite models other than the one provided in the example (e.g. [ssd_mobilenet_v1_coco](http://download.tensorflow.org/models/object_detection/ssd_mobilenet_v1_coco_2018_01_28.tar.gz)), there may be less detections returned than `NUM_DETECTIONS`. When less detections are provided, garbage float values are...
When installing the tensorflow-lite image-classification example on android for the first time, an `ArrayIndexOutOfBoundsException` occurs: ```E/AndroidRuntime: FATAL EXCEPTION: main Process: org.tensorflow.lite.examples.classification, PID: 17165 java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1,...