Closed ShigemoriHakura closed 1 year ago
@ShigemoriHakura Your model contains custom ops not supported in the default TFLite binary. Or using extended libraries such as select-ops.
(We should parse %s
in the log message, sorry for the inconvenience)
hmmm ok, so do you know which custom ops is needed? (or how can I know the %s is what)
The code is here. The parsing va_list
is disabled as it causes a crash randomly.
Here are the list built-in ops in TensorFlow Lite ↓ https://github.com/asus4/tf-lite-unity-sample/blob/master/Packages/com.github.asus4.tflite/Runtime/BuiltinOps.cs
The code is here. The parsing
va_list
is disabled as it causes a crash randomly.Here are the list built-in ops in TensorFlow Lite ↓ https://github.com/asus4/tf-lite-unity-sample/blob/master/Packages/com.github.asus4.tflite/Runtime/BuiltinOps.cs
Thx, I founded the missing op is Landmarks2TransformMatrix, which is included in MediaPipe https://github.com/google/mediapipe/blob/master/mediapipe/util/tflite/operations/landmarks_to_transform_matrix.cc So I have to compile the tensorflow binary myself?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When init the model using BaseImagePredictor
It returns:
Version: 2.11.0 Input [0]: name: serving_default_input:0, type: Float32, dimensions: [1,256,256,3], quantizationParams: {scale: 0 zeroPoint: 0} Output [0]: name: StatefulPartitionedCall:0, type: Float32, dimensions: [1,42], quantizationParams: {scale: 0 zeroPoint: 0} Output [1]: name: StatefulPartitionedCall:2, type: Float32, dimensions: [1,20], quantizationParams: {scale: 0 zeroPoint: 0} Output [2]: name: StatefulPartitionedCall:1, type: Float32, dimensions: [1,1], quantizationParams: {scale: 0 zeroPoint: 0}
TFLite Warning: Encountered unresolved custom op: %s.
TFLite Warning: Node number %d (%s) %s.
Exception: Ops not found.
I'm not sure which ops is needed as the debug info don't give me much information.
model_ten.zip