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

EXC_BAD_ACCESS error on IOS #30

Open
maslovay opened this issue Jul 23, 2021 · 3 comments
Open

EXC_BAD_ACCESS error on IOS #30

maslovay opened this issue Jul 23, 2021 · 3 comments

Comments

@maslovay
Copy link

I'm using custom SSD model (I tried my own and three other models that were trained by users)

They work fine in Android, but in IOS it fails here:

if (interpreter->AllocateTensors() != kTfLiteOk) {
    callback(@[@"Failed to allocate tensors!"]);
  }

With EXC_BAD_ACCESS

When I use ssd_mobilenet.tflite from model Zoo IOS does not throw error

@BILLXZY1215
Copy link

BILLXZY1215 commented Sep 8, 2021

Same issue here. Any workaround?

@ananta
Copy link

ananta commented Apr 10, 2022

Any solution over here? I'm facing the same issue :)

@BILLXZY1215
Copy link

BILLXZY1215 commented Apr 20, 2022

Hey guys, are you using the customized tflite model? It works fine with my machine when I use the default model, but not for the customized models. I think when generating tflite files, the version of tensorflow-lite should be specified. This repo only accepts tensorflow-lite r1.12, which means the tflite file generated by other versions might not match the interpreter. In this case, you may need to replace these files:

ios/Pods/TensorflowLite/Frameworks/tensorflow_lite.framework/Headers/Tensorflow to a suitable version (e.g. tensorflow r2.8)
ios/Pods/TensorflowLite/Frameworks/tensorflow_lite.framework/Headers/flatbuffers to a suitable version (e.g. flatbuffer 1.12, which will match tf r2.8)

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

3 participants