How to load TFLite model from Android asset and use it?

Hi Everyone,

I am Preet Vadaliya from India,I am one of the Opensource Developer at MIT App Inventor and I have successfully completed my Google Summer of Code 2021 with MIT App Inventor.

Currently, We are looking for new feature for App Inventor, Basically we want to add support of Google Teachable Machine to App Inventor. So my question is that is there any way to load TFLite model from android asset folder and use it for image classification? because I haven’t seen any method or example on documentation page, if yes then it would be a great if anyone can share with me.

Thanks
Preet P. Vadaliya

1 Like

Hi,

Are you having difficulty with this example? Generally it loads a .tflite file that is located inside an assets folder.

Get back if you have more issues.

Thanks

@George_Soloupis thanks for your solution now it is working fine for me.

1 Like