问题
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
回答1:
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
来源:https://stackoverflow.com/questions/50878885/unknown-layer-lambda-in-tensorflowjs-on-browser