profile
viewpoint

Ask questionsThe use of tflite Model of C3D Network in Android

I use a model of C3D network training to convert to a tflite format; use in the android project available at: https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android The following question arises: is android not currently supported Con3D? 5D data?

E/tensorflow: CameraActivity: Exception! java.lang.IllegalStateException: Internal error: Unexpected failure when preparing tensor allocations: tensorflow/lite/kernels/strided_slice.cc StridedSlice op only supports 1D-4D input arrays. Node number 0 (STRIDED_SLICE) failed to prepare.

    at org.tensorflow.lite.NativeInterpreterWrapper.allocateTensors(Native Method)
    at org.tensorflow.lite.NativeInterpreterWrapper.init(NativeInterpreterWrapper.java:96)
    at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:61)
    at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:224)
    at org.tensorflow.lite.examples.classification.tflite.Classifier.<init>(Classifier.java:189)
    at org.tensorflow.lite.examples.classification.tflite.ClassifierFloatMobileNet.<init>(ClassifierFloatMobileNet.java:41)
    at org.tensorflow.lite.examples.classification.tflite.Classifier.create(Classifier.java:100)
    at org.tensorflow.lite.examples.classification.ClassifierActivity.recreateClassifier(ClassifierActivity.java:168)
    at org.tensorflow.lite.examples.classification.ClassifierActivity.onPreviewSizeChosen(ClassifierActivity.java:71)
    at org.tensorflow.lite.examples.classification.CameraActivity.onPreviewFrame(CameraActivity.java:232)
    at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1261)
    at android.os.Handler.dispatchMessage(Handler.java:110)
    at android.os.Looper.loop(Looper.java:203)
    at android.app.ActivityThread.main(ActivityThread.java:6406)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
tensorflow/tensorflow

Answer questions renjie-liu

Thai recently made a change to support > 4d dimension, can you retry with the selected ops?

Thanks

useful!

Related questions

ModuleNotFoundError: No module named 'tensorflow.contrib' hot 9
Tf.Keras metrics issue hot 8
Error occurred when finalizing GeneratorDataset iterator hot 7
Error loading tensorflow hot 6
module 'tensorflow' has no attribute 'ConfigProto' hot 6
TF 2.0 'Tensor' object has no attribute 'numpy' while using .numpy() although eager execution enabled by default hot 6
tensorflow-gpu CUPTI errors
Lossy conversion from float32 to uint8. Range [0, 1]. Convert image to uint8 prior to saving to suppress this warning.
ModuleNotFoundError: No module named 'tensorflow.contrib'
When importing TensorFlow, error loading Hadoop
OSError: SavedModel file does not exist at: saved_model_dir/{saved_model.pbtxt|saved_model.pb}
AttributeError: module &#39;tensorflow.python.framework.op_def_registry&#39; has no attribute &#39;register_op_list&#39;
tf.keras.layers.Conv1DTranspose ?
[TF 2.0] tf.keras.optimizers.Adam hot 4
TF2.0 AutoGraph issue hot 4
source:https://uonfu.com/
Github User Rank List