“未知层:Lambda"在浏览器上的 tensorflowjs 中 [英] "Unknown layer: Lambda" in tensorflowjs on browser
问题描述
我是机器学习领域的新手.我正在尝试通过在 tensorflow js 中转换训练模型来在浏览器上运行 python 程序.
<块引用>我正在寻找消除此错误的解决方案...!
参考:
如何将 TensorFlow SavedModel 导入 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 :
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屋!