Demo is available by Tensorflow in following link :
https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/java/demo
Please change labels.txt file in above file by adding or removing a text(class) , It'll crash the application.
It's making the given solution unable to change output's size.
Please address the solution, how can we change the label.txt
file with some constants like INPUT_SIZE
or OUTPUT_SIZE
that makes this bug solved.
Note
Application works fine as it is, but crash upon changing label.txt
file, e.g. adding or removing names in the file.
Crash :
Cannot copy between a TensorFlowLite
tensor with shape [1, 1001] and a Java object with shape [1, 1000].
****Above demo is build by using already present gradle
configuration setting.**
Feature request:
Changing label file size & work accordingly through parameter is available in IOS
demo with this
output_size = 1000;
This feature should be in Android version as well.
Thanks.