我刚开始学习tf,我按照pose_classification训练了姿态分类模型,我将保存的keras模型转成tfjs模型,在web端加载模型后报错。
Uncaught (in promise) Error: Unknown layer: SlicingOpLambda. This may be due to one of the following reasons:
- The layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.
- The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass().