我可以在firebase函数中使用自定义tensorflow模型进行预测吗?

我可以在firebase函数中使用自定义tensorflow模型进行预测吗?,firebase,tensorflow,google-cloud-platform,google-cloud-functions,google-cloud-ml,Firebase,Tensorflow,Google Cloud Platform,Google Cloud Functions,Google Cloud Ml,我有我的自定义TensorFlow模型。我想将该模型存储在firebase存储中,并编写一个firebase函数,该函数可以使用自定义模型进行预测 我知道,这可以解决我的问题 但这种架构的问题在于它在GCP中使用了ML引擎。因此,为了能够使用它,我必须将我的firebase Spark计划升级为Blaze计划,以便能够使用GCP服务 我目前不想升级,原因有两个:(a)我仍在开发中,我不确定最终会选择哪个云平台(b)出于我的应用目的,这种架构将非常昂贵,因为我有流式数据 Firebase函数在No

我有我的自定义TensorFlow模型。我想将该模型存储在firebase存储中,并编写一个firebase函数,该函数可以使用自定义模型进行预测

我知道,这可以解决我的问题

但这种架构的问题在于它在GCP中使用了ML引擎。因此,为了能够使用它,我必须将我的firebase Spark计划升级为Blaze计划,以便能够使用GCP服务

我目前不想升级,原因有两个:(a)我仍在开发中,我不确定最终会选择哪个云平台(b)出于我的应用目的,这种架构将非常昂贵,因为我有流式数据

Firebase函数在Node.js中运行,所以我尝试为Node安装TensorFlow javascript库。然后,当我尝试使用“tfjs节点”:“^1.5.1”作为依赖项部署firebase函数时,出现以下错误

⚠  functions[sendPrediction(us-central1)]: Deployment error.
Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`npm_install` had stderr output:\nnpm ERR! code E404\nnpm ERR! 404 Not Found: tfjs-node@^1.5.1\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /builder/home/.npm/_logs/2020-01-11T01_18_50_880Z-debug.log\n\nerror: `npm_install` returned code: 1", "errorType": "InternalError", "errorId": "D17329C9"}}

是tensorflow 1还是tensorflow 2模型?@guillaumeblaquiere tensorflow 2模型,我使用的tensorflow库是“tfjs节点”:“^1.5.1”@InfiniteOper您是否设法在firebase云函数上部署tensorflow模型?@Koh不,我们不再使用firebase。