簡體   English   中英

TensorFlow Lite - 自定義 model 被替換為示例 model

[英]TensorFlow Lite - Custom model getting replaced by example model

我正在通過為 Android 構建二進制圖像分類應用程序來學習 TensorFlow lite。 I trained my tflite model by following the official model maker tutorial ( https://www.tensorflow.org/lite/tutorials/model_maker_image_classification ), where I got my model.tflite and label.txt file saved in the google colab directory. As per the TensorFlow lite tutorial ( https://www.tensorflow.org/lite/models/image_classification/overview ), I added model.tflite and label.txt (containing the labels of my classes) in assets folder on the reference android應用程序。 並更改了代碼中的 label 文件名和參考 android 應用程序的代碼中的 TensorFlow Lite 文件名。

However, while running the reference app in Android studio, I am still seeing the default model provided by TensorFlow using the default classes for classification, and not the model I trained and classes of classification I created.

go to download_model.gradle each time the app is built, the gradle download the cefault model replace it with your model link (upload your model to google drive and put the link in the gradle)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM