[英]Firebase deploy - Cannot publish a model that is not verified
I'm trying to deploy a .tflite
to Firebase ML so that I can distribute it from there.我正在尝试将
.tflite
部署到 Firebase ML,以便我可以从那里分发它。
I used transfer learning on this TF Hub model .我在这个 TF Hub model上使用了迁移学习。 I then followed this tutorial to convert the model
.tflite
format.然后我按照本教程转换了 model
.tflite
格式。
This model gives good results in the python TFLite interpreter and can be used on Android if I package with the app.这个 model 在 python TFLite 解释器中给出了很好的结果,并且可以在 Android 上使用,如果我将 ZEFE90A8E604A7C840E88 与 DA 应用程序一起使用。
However I want to serve the model via Firebase, so I use this tutorial to deploy the .tflite
file to Firebase.但是我想通过 Firebase 为 model 提供服务,所以我使用本教程将
.tflite
文件部署到 Firebase。 Using this tutorial, I get an error firebase_admin.exceptions.FailedPreconditionError: Cannot publish a model that is not verified.
使用本教程时,我收到错误
firebase_admin.exceptions.FailedPreconditionError: Cannot publish a model that is not verified.
. .
I can't find any information about this error anywhere, and given the model works on both Android and Python, I'm at a loss as to what could be causing this我在任何地方都找不到有关此错误的任何信息,并且鉴于 model 适用于 Android 和 Python,我不知道是什么原因造成的
Did you solve this issue?你解决了这个问题吗? I had the same one, and it turned out the model size should be < 40mb.
我有同样的一个,结果 model 大小应该小于 40mb。 That caused the error, and the detailed error is only reported when uploading a model manually through web Firebase dashboard
这导致了错误,详细错误仅在通过web Firebase仪表板手动上传model时报告
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.