Skip to content

Could not invoke RNImageRecognition.initImageRecognizer. Failed to allocate byte allocation. #39

Description

@Jonarod

Just cloned the repo, and ran the example as-is on a Genymotion android device with 4Gb RAM.
Everything seems to build fine, but got this error in the device:

Could not invoke RNImageRecognition.initImageRecognizer. 

null

Failed to allocate a 53884608 byte allocation with 25165824 free bytes and 31MB until OOM, max allowed footprint 93269104, growth limit 100663296.

I can imagine it is an "hardware" problem but I find it a bit strange it's not working on a 4096MB RAM device for an image classifier.

Maybe use TensorFlow Lite instead ?
Any suggestion ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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