“未知层:Lambda"在浏览器上的 tensorflowjs 中 [英] "Unknown layer: Lambda" in tensorflowjs on browser

查看:34
本文介绍了“未知层:Lambda"在浏览器上的 tensorflowjs 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是机器学习领域的新手.我正在尝试通过在 tensorflow js 中转换训练模型来在浏览器上运行 python 程序.

<块引用>

我正在寻找消除此错误的解决方案...!

参考:

tensorflow.org

如何将 TensorFlow SavedModel 导入 TensorFlow.js

将 Keras 模型导入 TensorFlow.js

解决方案

TensorFlow.js 不支持 Lambda(本机代码)层.您需要将其替换为自定义图层.这很棘手.这是一个自定义层示例:https://github.com/tensorflow/tfjs-examples/tree/master/custom-layer

I am new in machine learning area. i am trying to run python program on browser by converting trained model in tensorflow js.

this attention_ocr is related to OCR written in python. i have generated HDF5/H5 file and converted that in web specific format with tensorflowjs_converter[ref].

I follow all instruction given in this document but at the time of running in browser it throwing me error (refer screenshot)

I am looking for solution to remove this error...!

Referance :

tensorflow.org

How to import a TensorFlow SavedModel into TensorFlow.js

Importing a Keras model into TensorFlow.js

解决方案

Lambda (native code) layers are not supported in TensorFlow.js. You will need to replace it with a custom layer. This is tricky. Here is an example custom layer: https://github.com/tensorflow/tfjs-examples/tree/master/custom-layer

这篇关于“未知层:Lambda"在浏览器上的 tensorflowjs 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆