Closed tkg61 closed 4 years ago
Was able to make the following changes to get it to work by using tensorflow runtime (latest from google):
import tflite_runtime.interpreter as tflite
def make_interpreter(model_path, edge_tpu=False):
# Load the TF-Lite model and delegate to Edge TPU
if edge_tpu:
interpreter = tflite.Interpreter(model_path=model_path,
experimental_delegates=[
tflite.load_delegate(EDGETPU_SHARED_LIB)
])
else:
interpreter = tflite.Interpreter(model_path=model_path)
return interpreter
Running into the error mentioned here while experimenting with the provided file in this repo (model, classes, etc):
https://github.com/google-coral/edgetpu/issues/44
Still new to the TPU. Do i need to change something or is the code needing to be edited?
Thanks!