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?
Hi there.
I wanted to know if it is possible to store and read the trained
.tflitemodel from the Android device's internal storage instead of the assets folder?The issue I am having is with the
startOffsetvalue in theloadModelFile(AssetManager assetManager, String modelPath)function. currently, it comes fromAssetFileDescriptor 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?