Skip to content

Unable to load tflite model in iOS. #29

@RaviKiranMakala

Description

@RaviKiranMakala

Hi, I am trying to add this library to my project. For android given instructions are working. But for iOS i tried many ways to add library but i am getting null is not an object evaluating (TfliteReactNative.loadModel).

I tried below ways induvidually and failed to load model.

  1. Xcode -> MyProject -> ProjectFolder -> Right Click -> Add filed to "My project" -> Disabled Copy items if needed and Enabled Create groups -> Selected models folder(which contains model.tflite and label.txt files).
  2. Xcode -> MyProject -> ProjectFolder -> Right Click -> Add filed to "My project" -> Enabled Copy items if needed and enabled Create groups -> Selected models folder(which contains model.tflite and label.txt files).
  3. Tried to add Directly .tflite and .txt without models folder with above 2 steps.
  4. Drag ad dropping models folder/ files.

Where am i going wrong? Please anyone help me out.

My configurations are:
macOS - 10.15.7
react-native - 0.64.2
tflite-react-native - 0.0.5

pods:
TensorFlowLite (1.13.1)
TfliteReactNative (0.0.4)

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions