Getting this error in example custom pretrained model mobilenet_v1_1.0_224.tflite from model zoo.
Code
# create the output dir if not preset # clear the directory os.makedirs(output_dir, exist_ok=True) for root, dirs, files in os.walk(output_dir, topdown=False): [os.remove(os.path.join(root, f)) for f in files] [os.rmdir(os.path.join(root, d)) for d in dirs] tidl_delegate = [tflite.load_delegate(os.path.join(os.environ['TIDL_TOOLS_PATH'], 'tidl_model_import_tflite.so'), compile_options)] interpreter = tflite.Interpreter(model_path=tflite_model_path, experimental_delegates=tidl_delegate) interpreter.allocate_tensors() input_details = interpreter.get_input_details() output_details = interpreter.get_output_details() for num in tqdm.trange(len(calib_images)): interpreter.set_tensor(input_details[0]['index'], preprocess_for_tflite_mobilenetv1(calib_images[num])) interpreter.invoke()