GitHub code: https://github.com/HussainArif12/yolo-native-tutorial
Hey guys, in this video, you're gonna learn how to deploy a YOLO model on Android via the LiteRT (formerly known as Tensorflow Lite) library in React Native. We will make use of native Kotlin modules via the Expo Native API.
Timestamps:
0:00 Intro
1:17 Exporting YOLO model to .tflite
4:30 Creating a React Native project
5:08 Project setup
6:10 Image Picker
9:49 Native module setup
12:20 Model loading function
14:01 'performInference' function
18:11 Importing the .tflite model
19:12 Image to Bitmap
20:23 Model input/output formats
22:09 Conversion code
28:29 Performing inference
30:00 Parsing inference results
34:50 Displaying results
36:07 Displaying boxes for detections
40:25 Closing the interpreter
42:47 Tensorflow Lite to LiteRT
43:59 "Why not use X?"
44:41 Outro
Relevant resources:
Building a Native module in Expo: https://youtu.be/w9ipID5hkmA
Training YOLO models in Python: https://youtu.be/lNPdlAfFXok
Thanks for watching!