(HELP)Tensorflow React Native Expo for Offline Use

Is there any way I can integrate tensorflow into my react native expo bare workflow to make it work offline? cause Im having a hard time trying to solve but still haven’t done any progress til now since I saved the model into .h5 and even converted it into tensorflow Lite

HI @AxlRich ,

Based on my understanding, we can directly load a TFJS model that’s saved locally using @tensorflow/tfjs into you react-native application. Take a look at the code below.

import * as tf from '@tensorflow/tfjs';
const model = await tf.loadGraphModel('path/to/tfjs_model/model.json'); 

You can convert your .h5 model to the TFJS format(.json) and then load that model into your Expo application. Let me know if it helps. Thank You!!