{"repo":"mrousavy/react-native-fast-tflite","free":true,"listed":false,"github":"https://github.com/mrousavy/react-native-fast-tflite","clone":"git clone https://github.com/mrousavy/react-native-fast-tflite.git","description":"🧬 High-performance TensorFlow Lite library for React Native with GPU acceleration","language":"TypeScript","stars":1220,"topics":["ai","arraybuffer","camera","detection","facial-recognition","fast","ml","native","object-detection","react"],"license":"MIT","category":"machine-learning","readme_excerpt":"A high-performance TensorFlow Lite library for React Native, built with Nitro Modules. - ⚡ Powered by Nitro Modules - 💨 Zero-copy ArrayBuffers - 🔧 Uses the low-level C/C++ TensorFlow Lite core API for direct memory access - 🔄 Supports swapping out TensorFlow Models at runtime - 🖥️ Supports GPU-accelerated delegates (CoreML/Metal/OpenGL) - 📸 Easy VisionCamera integration Migrating from v2 If you are upgrading from v2, see the Migration Guide for breaking changes and upgrade steps. Installation 1. Add the npm packages: 2. In metro.config.js , add tflite as a supported asset extension: This allows you to drop .tflite files into your app and swap them out at runtime without rebuilding. 🔥 3. (Optional) To enable GPU delegates, see Using GPU Delegates below. 4. Run your app ( yarn android / npx pod-install && yarn ios ) Usage 1. Find a TensorFlow Lite ( .tflite ) model. There are thousands of public models on tfhub.dev. 2. Drag your model into your app's asset folder (e.g. src/assets/my-model.tflite ) 3. Load the Model: 4. Call the Model: Loading Models Models can be loaded from the React Native bundle via require(..) , or any URI/URL ( http://.. or file://.. ): Loading a Model is asynchronous since buffers need to be allocated. Make sure to handle errors when loading. Input and Output data TensorFlow uses tensors as input and output. Since TensorFlow Lite is optimized for fixed-size byte buffers, you are responsible for interpreting the raw data yourself. Input and output va","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrousavy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrousavy/react-native-fast-tflite/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}