Comments (2)
Hi, @DanielVacha-dv
Thank you for bringing this issue to our attention, I believe you're following the exact steps mentioned in this codelab tutorial in that it's using the older version of TensorFlow so could you please try with latest version by adding below line, if you want to use GPU then please add this line implementation 'org.tensorflow:tensorflow-lite-gpu:+'
or else ignore it
dependencies {
implementation 'org.tensorflow:tensorflow-lite:+'
implementation 'org.tensorflow:tensorflow-lite-gpu:+' // Import the GPU delegate plugin Library for GPU inference
}
We do have TensorFlow Lite Digit Classification Demo Application if you want to give it try
Please let us know after trying with latest version is it resolving your issue or not ? if issue still persists please let us know with error log and steps which you followed before encountering the error message that will help us to investigate your issue further.
Thank you for your cooperation and patience.
from tensorflow.
Hello gaikwadrahul8
Thank you for your reply. You're right, I tried to follow the instructions here https://developer.android.com/codelabs/digit-classifier-tflite?hl=en#0
and also in https://colab.research.google.com/github/tensorflow/examples/blob/master/lite/codelabs/digit_classifier/ml/step2_train_ml_model.ipynb#scrollTo=C4ASalaLIbu2 as accurately as I could.
After cloning the project from the Git repository, I immediately ran the variant in the finish directory and added the mnist.tflite file to the desired location. I had problems during the build, so I changed the parameters in the build.gradle file.
The next day after sending the email, I couldn't be satisfied with the failure and that's why I started, at least superficially, into the issue of creating models and asked Gemini as well.
Gemini advised me to edit the part with the model settings
"converter.target_spec.supported_ops = [
tf.lite.OpsSet.TFLITE_BUILTINS, # enable LiteRT ops.
tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.
]" but it still didn't work. Finally, out of desperation, I tried not to save the model with tflite_quantized_model , f.write(tflite_quantized_model) but with this tflite_float_model. Only then I was able to run the application without crashing.
Following your advice, I cloned the https://github.com/tensorflow/examples.git repository again today to a new location and tried the recommended steps, but that also resulted in a translation error. I don't know if it's helpful, but I'm attaching the build.gradle file that allowed me to run the application and also the model (mnist.tflite) that contains tflite_float_model.
Thank you for your cooperation
Regards, Daniel
build.gradle.txt
mnist.tflite.txt
from tensorflow.
Related Issues (20)
- Floating point exception (core dumped) in `tf.nn.depth_to_space` HOT 1
- Aborted (core dumped) in `tf.raw_ops.Einsum` HOT 1
- Aborted (core dumped) in `tf.io.encode_png`/`tf.compat.v1.image.encode_png` HOT 1
- Aborted (core dumped) in `tf.raw_ops.BiasAdd/tf.nn.bias_add` HOT 1
- Aborted (core dumped) in `tf.raw_ops.ResourceScatterNdop` HOT 1
- Aborted (core dumped) in `tf.linalg.det/slogdet/logdet/cholesky/inv` HOT 1
- Segmentation fault (core dumped) in `tf.data.experimental.SqlDataset` HOT 1
- Aborted (core dumped) in `tf.data.Dataset.from_generator` HOT 1
- Segmentation fault (core dumped) in `tf.raw_ops.FakeParam` HOT 1
- Leakage of personal info to BCI
- ExponentialMovingAverage doesn't work with KerasVariable HOT 4
- Multithreading is not working with teansorflow HOT 3
- TF model trained with 2.7 has error in later versions with no OpKernel error
- Jit-compiling `tf.while_loop` inside `tf.vectorized_map` raises `InvalidArgumentError` HOT 1
- Tf_lite fails to compile in v2.18.0-rc0 in Ubuntu HOT 6
- TensorFlow 2.17.0 fails to install with grpcio HOT 1
- AttributeError when importing tensorflow in python 3.9 and django 4.2 project
- ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed. HOT 2
- TFlite compilation crashes on MacOS (error: _Float16 is not supported on this target) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.