Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inference failing with exported tfLite models #61

Open
m-romanenko opened this issue Jul 6, 2020 · 0 comments
Open

Inference failing with exported tfLite models #61

m-romanenko opened this issue Jul 6, 2020 · 0 comments

Comments

@m-romanenko
Copy link
Collaborator

The following code results in an error:

import tensorflow as tf
import numpy as np

# Load the TFLite model and allocate tensors.
interpreter = tf.lite.Interpreter(model_path="yolov4.tflite")
interpreter.allocate_tensors()

# Get input and output tensors.
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()

# Test the model on random input data.
input_shape = input_details[0]['shape']
input_data = np.array(np.random.random_sample(input_shape), dtype=np.float32)
interpreter.set_tensor(input_details[0]['index'], input_data)
interpreter.invoke()
RuntimeError: Encountered unresolved custom op: CombinedNonMaxSuppression.Node number 603 (CombinedNonMaxSuppression) failed to prepare.

An issue is opened in Tensorflow repo to add CombinedNonMaxSuppression op to flex, which will hopefully resolve this :
tensorflow/tensorflow#41012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant