hunglc007 / tensorflow-yolov4-tflite

YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implemented in Tensorflow 2.0, Android. Convert YOLO v4 .weights tensorflow, tensorrt and tflite
https://github.com/hunglc007/tensorflow-yolov4-tflite
MIT License
2.23k stars 1.24k forks source link

请问如何将得到的tflite模型进行android的部署 #435

Open mengxiangqiqin opened 2 years ago

mengxiangqiqin commented 2 years ago

我已经得到了yolov4的tflite模型,并且已经配置好了android studio(android虚拟机),我是应该用android studio去打开项目中的android文件夹吗,具体操作麻烦有大神可以指点一下

leeprinxin commented 2 years ago

https://andy6804tw.github.io/2021/09/02/android-tflite-regression-model-deploy/

TZECHIN6 commented 2 years ago

@mengxiangqiqin Hi, to deploy the model to android platform, you could follow these steps:

  1. Clone this repo to your local
  2. Install Android Studio
  3. Inside the Android Studio, click "file" --> "open", to open this android project. You should open the "android" directory.
  4. After that, change the model path and label path, set isTiny = true
  5. Done

If the app crash when you started it, see the Logcat in Android Studio, and figure out the error msg.