am15h / tflite_flutter_plugin

TensorFlow Lite Flutter Plugin
https://pub.dev/packages/tflite_flutter
Apache License 2.0
502 stars 353 forks source link

prebuilt TensorFlowLiteCMetal & TensorFlowLiteC #176

Open ThangVuNguyenViet opened 2 years ago

ThangVuNguyenViet commented 2 years ago

built and preconfig the built for TensorFlowLiteCMetal, which requires a lot of documentation investigation is not really documented. Tested on Facial recognition

saad-palapa commented 2 years ago

This is intriguing. @am15h, what is the process for getting this merged?

saad-palapa commented 2 years ago

@ThangVuNguyenViet, what are the steps I need to get this working?

ThangVuNguyenViet commented 2 years ago

I don't really know what's going on. The changes I've made are iOS related components, and most of them are adding operations. But the test fail is Android related

saad-palapa commented 2 years ago

Did you get it to work on iOS?

ThangVuNguyenViet commented 2 years ago

Yes, I do.

I follow this super good article for facial recognition. According to the doc, you need to generate TensorFlowLiteCMetal & TensorFlowLiteC from the built .tflite file, which I find the doc is not so clear and took me 3 days to have these generated. So I pushed some generated ones for others not getting frustrated.

PaulTR commented 1 year ago

Hey, just a heads up that I'm figuring some things out on my side of things, then I'll be able to go through and review this.

Thanks for putting it together, and I hope to have more news soon!