Skip to content

Reading model from internal storage #15

Description

@sai-pher

Hi there.

I wanted to know if it is possible to store and read the trained .tflite model from the Android device's internal storage instead of the assets folder?

The issue I am having is with the startOffset value in the loadModelFile(AssetManager assetManager, String modelPath) function. currently, it comes from AssetFileDescriptor fileDescriptor = assetManager.openFd(modelPath).
This file descriptor is used to get the start offset and declared length. Is there another way to read it from internal memory instead and still get the start offset and declaredLength? If not, is there a way to calculate the startOffset of a new model and its declared length when reading the raw binary from internal storage?

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